Hello all
I use the script found here, altered it to be hourly
http://www.aisecure.net/2012/01/11/automated-zfs-incremental-backups-over-ssh/
This work quit well, it creates, sends and destroy the snapshots on the sending side, just like I would.
I do not want to keep a lot of snapshots on the NAS itself.
We have a lot of data manipulation and snapshots grow fast.
But it will also destroy the snapshots on the receiving side, and that is something I do not want.
I want to keep the snapshots on the backup server.
I have searched, but can not find how to do it.
I believe it is the -R which destroys the snapshot at the remote side.
I know about the hold, but I want to keep it as simple as possible and I would like no scripting on the backup server to set the hold on the snapshots after a receive.
I use it for my samba zfs datasets.
And because every user has its own /usr/home/user dataset I need the children of /usr/home which is nasstore/samba/home to be send.
The final zfs command is
Thanks for your time.
regards
Johan
I use the script found here, altered it to be hourly
http://www.aisecure.net/2012/01/11/automated-zfs-incremental-backups-over-ssh/
This work quit well, it creates, sends and destroy the snapshots on the sending side, just like I would.
I do not want to keep a lot of snapshots on the NAS itself.
We have a lot of data manipulation and snapshots grow fast.
But it will also destroy the snapshots on the receiving side, and that is something I do not want.
I want to keep the snapshots on the backup server.
I have searched, but can not find how to do it.
I believe it is the -R which destroys the snapshot at the remote side.
I know about the hold, but I want to keep it as simple as possible and I would like no scripting on the backup server to set the hold on the snapshots after a receive.
I use it for my samba zfs datasets.
And because every user has its own /usr/home/user dataset I need the children of /usr/home which is nasstore/samba/home to be send.
The final zfs command is
Code:
zfs send -R -i nasstore/samba@hourly-2012-03-07-01 nasstore/samba@hourly-2012-03-07-02 | ssh zfsmaster@zfs.backupserv.local zfs receive -Fuv nasbck/samba
Code:
******************************************************************************
attempting destroy nasbck/samba@hourly-2012-03-07-00
success
attempting destroy nasbck/samba/profiles@hourly-2012-03-07-00
success
attempting destroy nasbck/samba/data@hourly-2012-03-07-00
success
attempting destroy nasbck/samba/home@hourly-2012-03-07-00
success
attempting destroy nasbck/samba/home/user1@hourly-2012-03-07-00
success
attempting destroy nasbck/samba/home/user2@hourly-2012-03-07-00
success
attempting destroy nasbck/samba/home/user3@hourly-2012-03-07-00
success
receiving incremental stream of nasstore/samba@hourly-2012-03-07-02 into nasbck/samba@hourly-2012-03-07-02
received 312B stream in 1 seconds (312B/sec)
receiving incremental stream of nasstore/samba/profiles@hourly-2012-03-07-02 into nasbck/samba/profiles@hourly-2012-03-07-02
received 312B stream in 1 seconds (312B/sec)
receiving incremental stream of sanstore/samba/home@hourly-2012-03-07-02 into nasbck/samba/home@hourly-2012-03-07-02
received 312B stream in 2 seconds (156B/sec)
receiving incremental stream of nasstore/samba/home/user1@hourly-2012-03-07-02 into nasbck/samba/home/user1@hourly-2012-03-07-02
received 312B stream in 1 seconds (312B/sec)
receiving incremental stream of nasstore/samba/home/user2@hourly-2012-03-07-02 into nasbck/samba/home/user2@hourly-2012-03-07-02
received 312B stream in 1 seconds (312B/sec)
receiving incremental stream of nasstorage/samba/home/user3@hourly-2012-03-07-02 into nasbck/samba/home/user3i@hourly-2012-03-07-02
received 312B stream in 1 seconds (312B/sec)
Thanks for your time.
regards
Johan