Need a backup script
Hey, I just finished a server and want it to start backing up computers on the network. The server is of course a Linux server with about 1.1TB of useable storage for backing up. But I want to try and automate the backup process as much as possible. For the most part, there are systems on the network that share their entire drives and partitions with password access, so there are a lot of files to move. However, I only want the files that are copied to take forever once. This means that after all the files are moved over, any time I do another backup, it needs to check the date the file was last modified automatically and determine if the file going over is newer or not. So basically, any time in the future, when I run this backup script, I want it to copy over files that don't exist on the server yet because they are new, and overwrite old files with the newer ones on the workstations.
Is there any available scripts out there that just need slight modifications to work? Currently, I am just moving files over as such:
mount -t smbfs -o username=userforpc //pcname/c$ /mnt/pcname/C_Drive
cp -frv /mnt/pcname/C_Drive/* /storage/failsafe/pcname_system_backup/C/
So pretty much, I want to be able to customize source and destination for certain folders, and then have it copy only the files necessary, being new or modified files.