![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Best unix incremental backup utility? | nottrobin | UNIX for Dummies Questions & Answers | 2 | 05-08-2009 09:04 AM |
| incremental backup | Usha Shastri | UNIX for Dummies Questions & Answers | 2 | 03-16-2009 03:46 AM |
| Incremental Backup using TAR in sco Openserver 5.0 | jamcalicut | SCO | 0 | 10-06-2007 05:28 AM |
| tar - incremental backup | Funky_ass | Shell Programming and Scripting | 0 | 07-19-2006 08:28 AM |
| How to reinvent incremental backup in bash? | siegfried | Shell Programming and Scripting | 1 | 10-21-2005 04:33 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Incremental backup
Hi, I would like to create a daily incremental backup of a directory with all of the files within and add a timestamp (year-month-day) to the tar.gz file. I have the following, but it doesn't backup the inside files of the directory. Code:
#!/bin/bash tar -czf /home/username/Desktop/test`date+%Y%m%d`.tar.gz /home/username/Desktop/directory Does this replaces the last tar.gz with the new one each day? Also, if errors presented I would like those to go to a .out file in /tmp Thanks in advance for your handy help! Regards, |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|