Linux / UNIX Tech Support Forum
This is a discussion on How to take Differential backup using "TAR" command within the Shell scripting forums, part of the Development/Scripting category; Hello Every one, I need a urgent help in creating a script which will take "Differential backup" of /home directory ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello Every one,
I need a urgent help in creating a script which will take "Differential backup" of /home directory using "TAR" command. Please advise me on this. Thanks, |
| Sponsored Links | ||
|
|
|
||||
|
GNU tar has -g option to create incremental backups. To make full backup on every sunday, enter:
tar -zcvf /backup/full.tar.gz /home To make incremental backup enter: Code:
NOW=$(date +"%d-%m-%Y") i=$(date +"%Hh%Mm%Ss") FILE="i.$NOW-$i.tar.gz" tar -g /root/gnutar.incremental.txt -zcvf /backup/$FILE /home Code:
man tar
__________________
Vivek Gite Linux Evangelist |
|
||||
|
You can also use - Linux / UNIX Tar Full and Incremental Tape Backup Shell Script
__________________
Vivek Gite Linux Evangelist |
![]() |
| Tags |
| backup , linux , tar , tar incremental backup |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| print a "FTP dir command" output into a .txt file | ecompean | Shell scripting | 2 | 09-02-2009 11:34 PM |
| script to search a "sentence" on a group of files. | permalac | Shell scripting | 2 | 04-09-2008 12:24 PM |
| How to be hidden from "who" command. | eawedat | Shell scripting | 0 | 13-08-2008 08:14 PM |
| altenative to "yes" command !! | vikas027 | Shell scripting | 1 | 21-02-2008 03:44 AM |
| Does Redhat have "what" utility which can be used to display identification Info? | DCAO | Linux software | 2 | 30-10-2007 07:23 PM |