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.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. UNIX for Dummies Questions & Answers
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
3. Shell Programming and Scripting
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
4. UNIX for Dummies Questions & Answers
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
5. Windows & DOS: Issues & Discussions
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 Advanced & Expert Users
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
7. Shell Programming and Scripting
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
8. Shell Programming and Scripting
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
9. UNIX for Beginners Questions & Answers
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
LEARN ABOUT CENTOS
vfs_shadow_copy2
VFS_SHADOW_COPY2(8) System Administration tools VFS_SHADOW_COPY2(8)
NAME
vfs_shadow_copy2 - Expose snapshots to Windows clients as shadow copies.
SYNOPSIS
vfs objects = shadow_copy2
DESCRIPTION
This VFS module is part of the samba(7) suite.
The vfs_shadow_copy2 VFS module functionality that is similar to Microsoft Shadow Copy services. When setup properly, this module allows
Microsoft Shadow Copy clients to browse "shadow copies" on Samba shares.
This is a 2nd implementation of a shadow copy module. This version has the following features:
1. You don't need to populate your shares with symlinks to the snapshots. This can be very important when you have thousands of shares, or
use [homes].
2. The inode number of the files is altered so it is different from the original. This allows the 'restore' button to work without a
sharing violation.
This module is stackable.
CONFIGURATION
vfs_shadow_copy2 relies on a filesystem snapshot implementation. Many common filesystems have native support for this.
Filesystem snapshots must be mounted on specially named directories in order to be recognized by vfs_shadow_copy2. The snapshot mount
points must be immediate children of a the directory being shared.
The snapshot naming convention is @GMT-YYYY.MM.DD-hh.mm.ss, where:
o YYYY is the 4 digit year
o MM is the 2 digit month
o DD is the 2 digit day
o hh is the 2 digit hour
o mm is the 2 digit minute
o ss is the 2 digit second.
The vfs_shadow_copy2 snapshot naming convention can be produced with the following date(1) command:
TZ=GMT date +@GMT-%Y.%m.%d-%H.%M.%S
OPTIONS
shadow:snapdir = SNAPDIR
Path to the directory where snapshots are kept.
shadow:basedir = BASEDIR
Path to the base directory that snapshots are from.
shadow:sort = asc/desc, or not specified for unsorted (default)
By this parameter one can specify that the shadow copy directories should be sorted before they are sent to the client. This can be
beneficial as unix filesystems are usually not listed alphabetically sorted. If enabled, you typically want to specify descending
order.
shadow:localtime = yes/no
This is an optional parameter that indicates whether the snapshot names are in UTC/GMT or in local time. By default UTC is expected.
shadow:format = format specification for snapshot names
This is an optional parameter that specifies the format specification for the naming of snapshots. The format must be compatible with
the conversion specifications recognized by str[fp]time. The default value is "@GMT-%Y.%m.%d-%H.%M.%S".
shadow:fixinodes = yes/no
If you enable shadow:fixinodes then this module will modify the apparent inode number of files in the snapshot directories using a hash
of the files path. This is needed for snapshot systems where the snapshots have the same device:inode number as the original files
(such as happens with GPFS snapshots). If you don't set this option then the 'restore' button in the shadow copy UI will fail with a
sharing violation.
shadow:snapdirseverywhere = yes/no
If you enable shadow:snapdirseverywhere then this module will look out for snapshot directories in the current and all parent
directories of the current working directory. An example where this is needed are independent filesets in IBM's GPFS, but other
filesystems might support snapshotting only particular subtrees of the filesystem as well.
EXAMPLES
Add shadow copy support to user home directories:
[homes]
vfs objects = shadow_copy2
shadow:snapdir = /data/snapshots
shadow:basedir = /data/home
shadow:sort = desc
CAVEATS
This is not a backup, archival, or version control solution.
With Samba or Windows servers, vfs_shadow_copy2 is designed to be an end-user tool only. It does not replace or enhance your backup and
archival solutions and should in no way be considered as such. Additionally, if you need version control, implement a version control
system.
VERSION
This man page is correct for version 3.2.7 of the Samba suite.
AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open
Source project similar to the way the Linux kernel is developed.
Samba 4.0 06/17/2014 VFS_SHADOW_COPY2(8)