Windows - how to set up universal backup of PC workstations to linux server (samba, bat, robocopy)
Hello,
I am an enthusiast in a small business with 10 PCs running Windows 10 + Linux server with samba + NAS Synology for network management and IT. They save a lot here, but at the same time they are worried about their data. I would like to think of some simple backup (it does not suit me in windows - it does not delete old versions), when the PC after the user logs in a bat file, which would call the main bat file common to all PCs. In that bat file would be undefined using robocopy or xcopy backup of user data in c: \ users. I don't know how to set it up specifically. Anyone please advise? Thank you
Hi,
I would solve universal backup of PC stations to linux server (samba, bat, robocopy) as follows:
1.) To some public shared directory (here \\ 192.168.1.251 \ public \) I would put two scripts on the server:
logon-pc.bat
logon.bat
2.) I would copy the logon-pc.bat file to Windows to the Windows Startup directory - Start - Run -
3.) The file on the logon.bat server will back up the user windows profile to the user's home directory on the server - here \\ 192.168.1.251 \ home \ backups \ default. The / XD parameter means that an exception is given to those paths so that they are not backed up.
I am an enthusiast in a small business with 10 PCs running Windows 10 + Linux server with samba + NAS Synology for network management and IT. They save a lot here, but at the same time they are worried about their data. I would like to think of some simple backup (it does not suit me in windows - it does not delete old versions), when the PC after the user logs in a bat file, which would call the main bat file common to all PCs. In that bat file would be undefined using robocopy or xcopy backup of user data in c: \ users. I don't know how to set it up specifically. Anyone please advise? Thank you
REPLY
Hi,
I would solve universal backup of PC stations to linux server (samba, bat, robocopy) as follows:
1.) To some public shared directory (here \\ 192.168.1.251 \ public \) I would put two scripts on the server:
logon-pc.bat
timeout 15
call \\ 192.168.1.251 \ public \ logon.bat
logon.bat
:: pc backups - default
ROBOCOPY "% USERPROFILE%" \\ 192.168.1.251 \ home \ backups \ default / Mir / E / XJ / Y: 0 / XD "% USERPROFILE% \ Local Settings" / XD "% USERPROFILE% \ appdata \ LocalLow" / XD
2.) I would copy the logon-pc.bat file to Windows to the Windows Startup directory - Start - Run -
shell: startup
. This setting will execute this bat file and then call the main bat file \\ 192.168.1.251 \ public \ logon.bat3.) The file on the logon.bat server will back up the user windows profile to the user's home directory on the server - here \\ 192.168.1.251 \ home \ backups \ default. The / XD parameter means that an exception is given to those paths so that they are not backed up.