linux backup script

Networking/Security Forums -> UNIX // GNU/Linux

Author: duster PostPosted: 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_BLocation: Chicago, IL US PostPosted: Wed Sep 15, 2010 3:38 pm    Post subject:
    ----
Open up your mouth baby bird! Here comes the vomit! Razz

Don't C&P and run this without making sure it does exactly what you want (I hold no responsibility Wink).

http://pastebin.com/h7pvVHdS

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 PostPosted: 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.



Networking/Security Forums -> UNIX // GNU/Linux


output generated using printer-friendly topic mod, All times are GMT + 2 Hours

Page 1 of 1

Powered by phpBB 2.0.x © 2001 phpBB Group