Author: duster, Posted: Wed Sep 15, 2010 12:25 pm Post subject: linux backup script ---- Can some assist me in creating a backup script that copies an entire directory from a Linux system zip&copies the files over to a hidden windows base drive then searches the drive for files that are more than 3 days old and removes them. so the files must be zipped by date.
Linux directory to zip and copy: /home/files/
Hidden Windows directory to copy files: //fileserver/records$/
Thanks a lot.
Author: Sgt_B, Location: Chicago, IL USPosted: Wed Sep 15, 2010 3:38 pm Post subject: ---- Open up your mouth baby bird! Here comes the vomit!
Don't C&P and run this without making sure it does exactly what you want (I hold no responsibility ).
This might be horribly broken, but it should get you going in the right direction. This might also help out.
Code:
man find
man stat
man mount.cifs
Mod note:
Tried to paste the code in here, but I got a 406 error from SFDC stating the request was unacceptable. /shrug
Author: duster, Posted: Wed Sep 15, 2010 10:47 pm Post subject: ---- Thanks so much i will test out the code to see if it actually accomplish what im trying to do.