Windows 10: Windows / Data Differential Backup from Command Line -- Possible ?

Discus and support Windows / Data Differential Backup from Command Line -- Possible ? in Windows 10 Backup and Restore to solve the problem; 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... Discussion in 'Windows 10 Backup and Restore' started by jimbo45, Aug 26, 2020.

  1. jimbo45 Win User

    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

    :)
     
    jimbo45, Aug 26, 2020
    #1
  2. jimbo45 Win User

    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
     
    jimbo45, Aug 26, 2020
    #2
  3. Bree Win User
    Windows / Data Differential Backup from Command Line -- Possible ?

    In addition to making regular Macrium images I have a batch file I use to perform a full or incremental copy of my data files to a network share. I run it manually, but there's no reason why it couldn't be scheduled.

    The key to only backing up files that have changed since the last backup is to use the /M option, available in both Xcopy and RoboCopy.

    Xcopy /?
    /M Copies only files with the archive attribute set,
    turns off the archive attribute.

    RoboCopy /?
    /M :: copy only files with the Archive attribute and reset it.

    To make a full backup I first use the command attrib +A *.* /s to set the Archive attribute on all files.
     
  4. Naki Win User

    Windows / Data Differential Backup from Command Line -- Possible ?

    GPU-Z what command line parameter ?

    Suggestion: /? (-?) and /help (-help) command-line arguments to show a list of all possible arguments in a small window. *Smile Windows / Data Differential Backup from Command Line -- Possible ? :)
     
Thema:

Windows / Data Differential Backup from Command Line -- Possible ?

Loading...
  1. Windows / Data Differential Backup from Command Line -- Possible ? - Similar Threads - Data Differential Backup

  2. Open a program and it's data file with command line command

    in Windows 10 Gaming
    Open a program and it's data file with command line command: Been a long time since I used MSDOS-style syntax to create a batch file or edit a shortcut path. Could use some help.Would like to edit the path of a shortcut .lnk create a batch file don't know which one is best to run Microsoft Money Plus C:\Program Files x86\Microsoft...
  3. Open a program and it's data file with command line command

    in Windows 10 Software and Apps
    Open a program and it's data file with command line command: Been a long time since I used MSDOS-style syntax to create a batch file or edit a shortcut path. Could use some help.Would like to edit the path of a shortcut .lnk create a batch file don't know which one is best to run Microsoft Money Plus C:\Program Files x86\Microsoft...
  4. Is it possible to Start the Windows build-in Mobile hotspot from command line?Not the...

    in Windows 10 Gaming
    Is it possible to Start the Windows build-in Mobile hotspot from command line?Not the...: Is it possible to Start the Windows build-in Mobile hotspot from command line?Not the Hosted network The Local area Connection https://answers.microsoft.com/en-us/windows/forum/all/is-it-possible-to-start-the-windows-build-in/c8d00033-c86a-4aa3-8bf6-6fc7807f8f3d
  5. Is it possible to Start the Windows build-in Mobile hotspot from command line?Not the...

    in Windows 10 Software and Apps
    Is it possible to Start the Windows build-in Mobile hotspot from command line?Not the...: Is it possible to Start the Windows build-in Mobile hotspot from command line?Not the Hosted network The Local area Connection https://answers.microsoft.com/en-us/windows/forum/all/is-it-possible-to-start-the-windows-build-in/c8d00033-c86a-4aa3-8bf6-6fc7807f8f3d
  6. Is it possible to Start the Windows build-in Mobile hotspot from command line?Not the...

    in Windows 10 Network and Sharing
    Is it possible to Start the Windows build-in Mobile hotspot from command line?Not the...: Is it possible to Start the Windows build-in Mobile hotspot from command line?Not the Hosted network The Local area Connection https://answers.microsoft.com/en-us/windows/forum/all/is-it-possible-to-start-the-windows-build-in/c8d00033-c86a-4aa3-8bf6-6fc7807f8f3d
  7. Windows / Data Differential Backup from Command Line -- Possible ?

    in Windows 10 Support
    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 --...
  8. Possible to backup data from two hard drives to one?

    in Windows 10 Backup and Restore
    Possible to backup data from two hard drives to one?: I have been building my PC for quite a long time now and I have some important information on it. System related things are on my C: drive whereas other things are on my D: drive. Is there a way I can backup these drives to one drive of terabyte storage? Thank you in...
  9. Possible to backup data from two hard drives to one?

    in Windows 10 Support
    Possible to backup data from two hard drives to one?: I have been building my PC for quite a long time now and I have some important information on it. System related things are on my C: drive whereas other things are on my D: drive. Is there a way I can backup these drives to one drive of terabyte storage? Thank you in...
  10. Is it possible to replace all data from non-bootable backup?

    in Windows 10 Backup and Restore
    Is it possible to replace all data from non-bootable backup?: Hello, Bear with me as I have had this catastrophic issue I've been dealing with for the past 24 hours... Long story short: I cloned my 500gb samsung ssd to my new Intel 2tb ssd using acronis. Everything was working well so I deleted my 500gb samsung ssd. Then i restarted...