LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 12-14-2007, 04:41 AM   #1
mujahed_khan
LQ Newbie
 
Registered: Oct 2007
Posts: 15

Rep: Reputation: 0
backups in newfolders


Hi there,
I want to take backup of a folder everyday and it should not append the previous backup i want it to make new folders date by date and take backup so can anyone suggest me way to do it and if anyone is knowing of a third party software please let me know....
 
Old 12-16-2007, 01:20 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,830
Blog Entries: 54

Rep: Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993
Hello and welcome to LQ. Just make a cronjob that calls a simple script like
Code:
#!/bin/sh
tar -cjf /backupsdir/`date +'%Y%m%d'`_nameofbackup.tar.bz2 /dirtobackup
exit 0
 
Old 12-17-2007, 12:48 AM   #3
mujahed_khan
LQ Newbie
 
Registered: Oct 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks i will start working on it right away.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Backups jwymore Fedora 2 02-08-2007 08:04 AM
Help with backups??? graystarr Red Hat 2 05-04-2005 06:29 PM
backups allan_y Linux - Newbie 3 07-01-2004 08:08 PM
backups AZDAVE Linux - General 1 11-06-2003 01:05 PM
CD-RW backups Perdido Linux - Software 1 09-09-2003 05:27 AM


All times are GMT -5. The time now is 11:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration