Sponsored Content
Top Forums Shell Programming and Scripting Incremental Backup using tar for more than one path Post 302991907 by momed131 on Saturday 18th of February 2017 12:38:19 AM
Old 02-18-2017
RedHat Incremental Backup using tar for more than one path

Hi everyone;

I need to create a shell script for full and incremental backup purposes. for incremental backup only for one folder (test1) located in /home/test1 syntax below works fine and have no problem:
Code:
 tar -cvf /home/backup/backup-0.tar.gz -g /home/test1/test.snar /home/test

Problem is here when I want to create a backup of two different folder at the same time using on line command. for example if I want to create incremental backup for two folder (test1,test2) located in /home/test1 and /etc/test2 what would be syntax??? should I have test.snar file in both folders or what???

Thanks for your kindly helps in advanced.

Last edited by rbatte1; 02-20-2017 at 09:03 AM.. Reason: Changed ICODE tags to be CODE tags, emboldened file names and changed to upper case where required.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

tar - incremental backup

Hello everyone! I'm trying to make incremental tar archives of a folder for an example. On the box I use is UNIX AIX installed. I tried some sample codes I found on several web pages but with no success. Don't know what I'm doing wrong. Please write some sample code to make incremental tar... (0 Replies)
Discussion started by: Funky_ass
0 Replies

2. SCO

Incremental Backup using TAR in sco Openserver 5.0

Incremental Backup using TAR in sco Openserver 5.0 Dear all I am using sco openserver 5.0. I wanted to take backup of two folder (each 600 MB size) with lot of files. I used to take backup using tar command daily using a script. But the same takes more time. Is there any way to take backup... (0 Replies)
Discussion started by: jamcalicut
0 Replies

3. UNIX for Dummies Questions & Answers

incremental backup

Hi All.. i am trying to write a script which will give the incremental tar backup of all files with latest timestam. i tried with find -mmin -2 but if it takes half on hour or something to creat the tar itself, then no meaning in using the above command. so please help me to find the... (2 Replies)
Discussion started by: Usha Shastri
2 Replies

4. UNIX for Dummies Questions & Answers

Best unix incremental backup utility?

Hello everyone. Could you please advise of what would be the best Unix (Debian 4) program for regular (daily or weekly) incremental backups? I'm not sure whether the backups will be stored on a "backup" drive on the same system or on an external "backup" system, but we would like to have a... (2 Replies)
Discussion started by: nottrobin
2 Replies

5. Shell Programming and Scripting

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. #!/bin/bash tar -czf... (1 Reply)
Discussion started by: agasamapetilon
1 Replies

6. Windows & DOS: Issues & Discussions

Incremental Backup

I have a folder /root/test in a centos 5.3 system. I want to take an incremental backup of the contents of the folder in the C:\Downloads folder of a windows system present in the same lan as the linux system. What are the ways of executing this plan? Kindly help (0 Replies)
Discussion started by: proactiveaditya
0 Replies

7. UNIX for Advanced & Expert Users

Do incremental backup without tar files up

I'm trying to do a incremental backup for a big NFS. Since space is not an issue, I don't want to compress them or end up with a big tarball for full backup( and a series of small tarballs for incremental backup). Basically I want the TAR backup/restore functionality but not TAR files up.... (3 Replies)
Discussion started by: overmindxp
3 Replies

8. UNIX for Dummies Questions & Answers

incremental and full backup.. please help me

Hi, i'm new here(and a newbie) and i need some help with a project. I need to write a script for an incremental backup (this must be executed every day at 24:00) and a full backup (executed once a month) for etc/var/home directories. Can someone please help me with this? And a small explanation of... (9 Replies)
Discussion started by: bender-alex
9 Replies

9. Homework & Coursework Questions

incremental or full backup ???

Hi. Can someone tell me if the following script that i have made is a script for INCREMENTAL BACKUP or FULL BACKUP. My teacher told me that is doing an FULL BACKUP. • find /etc /var /home -newer /backups/.backup_reference > /backups/.files_to_archive • touch /backups/.backup_reference • tar... (1 Reply)
Discussion started by: bender-alex
1 Replies

10. UNIX for Dummies Questions & Answers

Create an incremental tar

Hello, I need to create a tar file with a list of files from a directory. The directory has about 1000+ files of which I only need to create a tar ball of 150 files. The 150 files I need in the tar ball do not have common names or a common start letter. No two file names match, example: 1st... (3 Replies)
Discussion started by: babyPen1985
3 Replies
svn-backup-dumps(1)					      General Commands Manual					       svn-backup-dumps(1)

NAME
svn-backup-dumps - Create dumpfiles to backup a subversion repository. SYNOPSIS
svn-backup-dumps <repos> <dumpdir> DESCRIPTION
svn-backup-dumps creates dumpfiles from a subversion repository. It is intended for use in cron jobs and post-commit hooks. The basic modes of operation are: o Create a full dump (revisions 0 to HEAD) o Create incremental dump containing at most N revisions. o Create incremental single-revision dumps (for use in post-commit). Dumpfiles are named in the format basename.rev.svndmp or basename.rev.rev.svndmp, where basename is the repository directory name, and the rev arguments are the first and last revision numbers represented in the dumpfile, zero-padded to 6 digits. Optionally, svn-backup-dumps can compress dumpfiles with gzip or bzip2, and can transfer them to another host using FTP or SMB (using smb- client). OPTIONS
--version Show program's version number and exit. -h, --help Show this help message and exit. -b Compress the dump using bzip2. --deltas This is passed through to svnadmin dump. -c count Maximum number of revisions per dumpfile. -o Overwrite files. -O Overwrite all files. -q Quiet. -r rev Specify a single-revision dumpfile. -t ftp:host:user:password:path -t smb:share:user:password:path Transfer dumps to another machine using the FTP or SMB protocols. path is where to store the dumpfiles on the remote server; any occurrence of %r in the path is replaced by the repository name. Support for "smb:" requires the smbclient program. -z Compress the dump using gzip. EXAMPLES
To create a full dump of all revisions of a repository /srv/svn/foo in the directory /var/backup/svn: svn-backup-dumps /srv/svn/foo /var/backup/svn The dumpfile will be named src.000000-NNNNNN.svndmp.gz where NNNNNN is the head revision number. To create incremental dumps containing at most 1000 revisions: svn-backup-dumps --deltas -z -c 1000 /srv/svn/foo /var/backup/svn If the youngest revision is 2923, it creates the following files: foo.000000-000999.svndmp.gz foo.001000-001999.svndmp.gz foo.002000-002923.svndmp.gz If run again, later, when the youngest revision is 3045, it creates these two files: foo.002000-002999.svndmp.gz foo.003000-003045.svndmp.gz Note that it does not remove the redundant file foo.002000-002923.svndmp.gz. To create incremental single-revision dumps from a post-commit hook: svn-backup-dumps -r $rev $repos /var/backups/svn where $rev and $repos are variables previously set in the post-commit script from its command line. The dumpfile name will be in the form foo.000352.svndmp. To send the dumpfiles to the SMB share \ERNESTBACKUPS in a directory svnfoo with user svnuser and password w0rth1ng: svn-backup-dumps -t "smb://ERNEST/BACKUPS:svnuser:w0rth1ng:svn/%r /srv/svn/foo /tmp/tmpbackup Note that the %r in the path is replaced by the repository name foo. Note also that a local backup directory is required, at present, even when using the -t option. AUTHOR
Voluntary contributions made by many individuals. Copyright (C) 2006 CollabNet. 2006-11-09 svn-backup-dumps(1)
All times are GMT -4. The time now is 10:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy