10-12-2019
Quote:
Originally Posted by
engineer2002
Is it possible to take incremental backup in Linux using tar command?
Please guide me.
Suppose I have a directory /data.
And want incremental backup.
What will be the incremental "tar" command syntax?
Linux already has many good backup systems which uses some variations of
tar (or
rsync and tar) and is executed from
cron.
Why not use that one of those and not reinvent the wheel?
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i have taken a backup using cpio command. Now i want to retrieve the contents. Replies appreciated.
raguram (2 Replies)
Discussion started by: raguramtgr
2 Replies
2. AIX
When I use tsm command: archive -subdir=yes /dir1/
to backup file system: /dir1
After I delete the contents under /dir1 and recovery it from TSM backup,
retrieve /dir1/
I found the link breaked. Such as:
Before:
ls -l
lrwxrwxrwx 1 abc develop 8 Apr 28 16:04 bin... (1 Reply)
Discussion started by: rainbow_bean
1 Replies
3. Linux
Hey guys, I hope this is the right place to post. As i'm not too sure where this question would go.
The question is: How is backup and recovery carried out in major corporations. Even if you are not in a major corporation an answer would be great.
I'm doing some research as to how it's carried... (2 Replies)
Discussion started by: LibRid
2 Replies
4. Shell Programming and Scripting
Hi,
Do we have any options in rsync to recover files from the backup?
Please share your thoughts.
Thanks in advance. (0 Replies)
Discussion started by: MVEERA
0 Replies
5. Shell Programming and Scripting
Hi Everyone,
we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment?
Thanks in adv. (0 Replies)
Discussion started by: MVEERA
0 Replies
6. Red Hat
Can you please let me know a clear step by step procedure link/doc for an effective full backup and recovery procedure for a Redhat server with 2.6.34.9-69.fc13.x86_64 ?
Thanks in advance.
I also have the same question for Ubuntu Enterprise 12.04 if you would ...
thanks again (0 Replies)
Discussion started by: cmontr
0 Replies
BACKUP(8) System Manager's Manual BACKUP(8)
NAME
backup - backup files
SYNOPSIS
backup [-djmnorstvz] dir1 dir2
OPTIONS
-d At top level, only directories are backed up
-j Do not copy junk: *.Z, *.bak, a.out, core, etc
-m If device full, prompt for new diskette
-n Do not backup top-level directories
-o Do not copy *.o files
-r Restore files
-s Do not copy *.s files
-t Preserve creation times
-v Verbose; list files being backed up
-z Compress the files on the backup medium
EXAMPLES
backup -mz . /f0 # Backup current directory compressed
backup /bin /usr/bin
# Backup bin from RAM disk to hard disk
DESCRIPTION
Backup (recursively) backs up the contents of a given directory and its subdirectories to another part of the file system. It has two typ-
ical uses. First, some portion of the file system can be backed up onto 1 or more diskettes. When a diskette fills up, the user is
prompted for a new one. The backups are in the form of mountable file systems. Second, a directory on RAM disk can be backed up onto hard
disk. If the target directory is empty, the entire source directory is copied there, optionally compressed to save space. If the target
directory is an old backup, only those files in the target directory that are older than similar names in the source directory are
replaced. Backup uses times for this purpose, like make. Calling Backup as Restore is equivalent to using the -r option; this replaces
newer files in the target directory with older files from the source directory, uncompressing them if necessary. The target directory con-
tents are thus returned to some previous state.
SEE ALSO
tar(1).
BACKUP(8)