PDA

View Full Version : Shell Script to create new folder for updated files


srtemple13
11-25-2009, 06:39 PM
I'm looking for a way (Shell Script?) SD can backup newer or updated files to a folder named with the date of the backup. This way no files are overwritten (deleted essentially) and you have the choice of how far back you want to go for restoration. It would also allow deletion of older backups no longer needed. Can this be done?

dnanian
11-25-2009, 06:56 PM
No, it can't. You could, of course, back up to images and keep multiple images. Say, back up to a current one (called 'current') and then, at some fixed time of the day, run a script that copies 'current' to a date-based name. "current" would always be smart updated, and the older copies of current would be, well, older.