New
#1
Windows / Data Differential Backup from Command Line -- Possible ?
Hi folks
I was wondering if some powershell expert would know if it's possible to create a daily differential backup from the command line and then run it as an automated daily command. Primarily for DATA not the OS backup.
It might even be possible to do it in the WSL -- would be great if that worked.
The thing is it's so simple in Linux -- just this script will do it :
#!/bin/bash
DAY=$(date +%A)
if [ -e /location/to/backup/incr/$DAY ] ; then
rm -fr /location/to/backup/incr/$DAY
fi
rsync -a --delete --quiet --inplace --backup --backup-dir=/location/to/backup/incr/$DAY /path/to/backup/ /location/to/backup/full/
there's no reason also why this couldn't be started from a remote system (Windows or otherwise) via SSH - note Windows has openssh both client and server available -- the server version has to be enabled via the "add optional feature" - the client is already installed by default.
Messing around with things like Macrium differentials is OK on an individual machine but if one wants to save say backups to a NAS server from 8 / 9 laptops or clients then a nice simple automated script centrally administered seems t he way to do it.
I'm not suggesting in any way that users don't image their OS regularly but handling differential DATA file backups would give them a nice bit of extra functionality and the data volumes wouldn't be large in any case (and over a 10Gb LAN the traffic wouldn't kill it.).
Cheers
jimbo