• RSS
  • Twitter
  • FaceBook

Security Forums

Log in

FAQ | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

linux backup script

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> UNIX // GNU/Linux

View previous topic :: View next topic  
Author Message
duster
Just Arrived
Just Arrived


Joined: 06 May 2005
Posts: 0


Offline

PostPosted: Wed Sep 15, 2010 12:25 pm    Post subject: linux backup script Reply with quote

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.
Back to top
View user's profile Send private message
Sgt_B
Trusted SF Member
Trusted SF Member


Joined: 28 Oct 2002
Posts: 16777215
Location: Chicago, IL US

Offline

PostPosted: Wed Sep 15, 2010 3:38 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
duster
Just Arrived
Just Arrived


Joined: 06 May 2005
Posts: 0


Offline

PostPosted: Wed Sep 15, 2010 10:47 pm    Post subject: Reply with quote

Thanks so much i will test out the code to see if it actually accomplish what im trying to do.
Back to top
View user's profile Send private message
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> UNIX // GNU/Linux All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Looking for more Windows Networking info?

Sign up to the WindowsNetworking.com Monthly Newsletter, written by Enterprise Security MVP Deb Shinder, containing news, the hottest tips, Networking links of the month and much more. Subscribe today and don't miss a thing!
View a sample newsletter.

Become a WindowsNetworking.com member!

Discuss your Windows Networking issues with thousands of other Windows Newtorking experts. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred data recovery solution?

Follow TechGenix on Twitter