Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Cron and scripts to do a backup

Status
Not open for further replies.

wags22

Technical User
Sep 5, 2001
50
US
I want to set up a semi-automatic backup of newly added files. My intent is to set up a script that will check all files in a directory and subdirectories, compare when they were created to a set date (date of last backup, and at this point, starting date of files being uploaded), make a list of files that need to be backed up. Then from that list select files that the total backup will be less than a set size (4.5 GB - DVD disk size). If the total size is not up to the required amount, nothing happens, once the total size reaches the required level, it will prompt me to put in a disk and start the backup.

I know that I would need to use find and grep to accomplish this, but I'm not sure how to setup the script to accomplish what I want.

Any help would be greatly appreciated.

Please note: I want the backup to be of new files only, not a complete backup of all files.

Thanks,
Wags
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top