Incremental backups with ZFS


 
Thread Tools Search this Thread
Operating Systems Solaris Incremental backups with ZFS
# 1  
Old 01-22-2010
Incremental backups with ZFS

Good morning,

I am debugging an incremental backup system. It's actually f... up the hard link stuff and does not just do incrementals but full backups. What it should do is:

Code:
mv /storage/backups/Keto_Samba/backup.5 /storage/backups/Keto_Samba/backup.tmp
mv /storage/backups/Keto_Samba/backup.4 /storage/backups/Keto_Samba/backup.5
mv /storage/backups/Keto_Samba/backup.3 /storage/backups/Keto_Samba/backup.4
mv /storage/backups/Keto_Samba/backup.2 /storage/backups/Keto_Samba/backup.3
mv /storage/backups/Keto_Samba/backup.1 /storage/backups/Keto_Samba/backup.2
mv /storage/backups/Keto_Samba/backup.0 /storage/backups/Keto_Samba/backup.1
mv /storage/backups/Keto_Samba/backup.tmp /storage/backups/Keto_Samba/backup.0
cp -al /storage/backups/Keto_Samba/backup.1/. /storage/backups/Keto_Samba/backup.0

rsync -aru --delete root@192.168.17.15:/home/* /storage/backups/Keto_Samba/backup.0/

Well, should I try to use the snapshot feature of ZFS instead? Like doing rsyncs to a steady filesystem and then the incremental snapshots with zfs send -i? What do you recommend?
# 2  
Old 01-23-2010
Using ZFS snapshots is a quick and easy way to backup user home directories. For example, the following syntax creates recursive snapshots of all home directories in the tank/home file system.
# zfs snapshot -r tank/home@monday
You can create rolling snapshots to help manage snapshot copies.
You can use the zfs send and zfs receive commands to archive snapshots to more permanent storage.
You can create an incremental snapshot stream (see "zfs send -i" syntax).
The zfs send and receive commands are not enterprise-backup solutions. The receive operation is an all-or-nothing event, you can get all of a snapshot or none of it.
If you store the output of zfs send on a file or on tape, and that file becomes corrupted, then it will not be possible to receive correctly and none of the data will be recoverable.Enterprise backup solutions, as well as other copying methods, such as cp, tar, rsync, pax, cpio, and so on, are more appropriate for backup/restore than zfs send/receive.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Incremental logic

Hi Guys, am trying to write logic to do incremental value using linux Example: a=00.00.00.01 My b should be like this b=00.00.00.02 and when it reaches 99 my b should look like this b=00.00.01.99 Appreciate your help guys Please use CODE tags when displaying sample input, sample... (14 Replies)
Discussion started by: buddi
14 Replies

2. Shell Programming and Scripting

Incremental numbering?

Would it be possible for a script to duplicate a file and incrementally number it? File in: XXX_007_0580_xxxx_v0016.aep File out: XXX_007_0580_xxxx_v0017.aep If someone knows of a way I'd love to see it. Thanks! (7 Replies)
Discussion started by: scribling
7 Replies

3. Shell Programming and Scripting

FULL or INCREMENTAL ???

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

4. UNIX for Advanced & Expert Users

Differential or Incremental backups in Unix

Hi, Just wanted to know is there any way that we can take differential or incremental backups in Unix(Solaris/AIX/Linux or Hpunix).What is the procedure. Is any doc avaialble on this? Its urgent and any help/suggestions would be highly appreciable. Regards, Ravi Dwivedi (3 Replies)
Discussion started by: dwiravi
3 Replies

5. 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

6. UNIX for Dummies Questions & Answers

incremental by 1

let says, i have this number as 000002080, i want to add 1 to make it 000002081, and then i want to add 1 to 000002082, add 1 to 000002083, 84. i=000002080 TOT=$(echo "scale=9; $i + 1" | bc) echo $TOT it shows 2081, i want to retain 000002081, 000002082, 000002082, 000002084. (2 Replies)
Discussion started by: tjmannonline
2 Replies

7. 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

8. 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

9. Shell Programming and Scripting

Incremental log parser

I have log file that is incremented every second and is rather big. I need monitor error in this file. I do not want to parse it all every time. I want parse it first time then remember last position (as byte for example) All consequent parsing I want to start from last saved position to the... (3 Replies)
Discussion started by: Narcom
3 Replies
Login or Register to Ask a Question