Page 1 of 2

Snap shots of dedicated server

Posted: Tue Apr 12, 2011 5:11 am
by DarkF@der
Hello,

What's a good program to making complete snapshots off a dedicated server?

Thnx in advanced

Re: Snap shots of dedicated server

Posted: Tue Apr 12, 2011 7:55 am
by scott
We use rdiff-backup here

Re: Snap shots of dedicated server

Posted: Tue Apr 12, 2011 10:04 am
by breun
That depends on what your definition of snapshot is. If you want *true* snapshots then rdiff-backup is not gonna cut it. It will backup your files just fine (like BackupPC, which is what I use), but it will backup each file one after another and doesn't necessarily give you a true point-in-time snapshot of a filesystem.

* If you use LVM you could use its snapshot support.
* If you use a filesystem which supports snapshots (e.g. btrfs, Reiser4?) you could use that.

If you don't need true point-in-time snapshots, but are just looking for backups, then tools like rsync/rdiff-backup/BackupPC will probably do the job just fine and they don't require LVM or specific filesystems.

Re: Snap shots of dedicated server

Posted: Tue Apr 12, 2011 1:51 pm
by mikeshinn
That depends on what your definition of snapshot is. If you want *true* snapshots then rdiff-backup is not gonna cut it. It will backup your files just fine (like BackupPC, which is what I use), but it will backup each file one after another and doesn't necessarily give you a true point-in-time snapshot of a filesystem.
I assume he means a snapshot backup. Is that what you meant?

If so, you can roll back with rdiff-backup and BackupPC and you can create point in time backups with rsync backup if you use a branching tree. The branching tree method is easy to use but requires a little skill to setup, the roll back method with rdiff-backup is a little more work to use, but its automatic and very easy to setup up. BackupPC is very easy to use, but requires some work to setup.

If you want backups, NEVER rely on file systems snapshots EVER. A snapshot is not a backup. If you lose the drive(s) or file system you're hosed. A snapshot is a local point in time copy of the filesystem, not a backup.

Re: Snap shots of dedicated server

Posted: Tue Apr 12, 2011 2:00 pm
by breun
mikeshinn wrote:If you want backups, NEVER rely on file systems snapshots EVER. A snapshot is not a backup. If you lose the drive(s) or file system you're hosed. A snapshot is a local point in time copy of the filesystem, not a backup.
Sure. Although a cool trick is to create a file system snapshot and back that up.

Re: Snap shots of dedicated server

Posted: Tue Apr 12, 2011 2:30 pm
by mikeshinn
Yep, we do both. I just dont anyone to make the fatal error of assuming a snapshot is a backup, its a copy, a *local* copy. :-)

Re: Snap shots of dedicated server

Posted: Sun May 01, 2011 6:15 pm
by DarkF@der
So what i need to backup.
If a want to update to new a version plesk and if it goes wrong that i can rollback to older version?

with using of rdiff-backup

Thnx in advancd

Re: Snap shots of dedicated server

Posted: Mon May 02, 2011 4:46 pm
by mikeshinn
Heres a quick forum post I made about how to set this up:

https://www.atomicorp.com/forums/viewto ... kup#p15855

I also recommend backuppc.

Re: Snap shots of dedicated server

Posted: Tue May 03, 2011 6:14 am
by DarkF@der
Thnx for the tut....

Only when i take look at the backup.log i see a lot of these errors:

Code: Select all

ListError etc/apf [Errno 13] Permission denied: '/etc/apf'
ListError etc/asl/www [Errno 13] Permission denied: '/etc/asl/www'
ListError etc/cron.d [Errno 13] Permission denied: '/etc/cron.d'
ListError etc/csf [Errno 13] Permission denied: '/etc/csf'
ListError etc/dcc/log [Errno 13] Permission denied: '/etc/dcc/log'
ListError etc/lvm [Errno 13] Permission denied: '/etc/lvm'
ListError etc/mail/spamassassin/sa-update-keys [Errno 13] Permission denied: '/etc/mail/spamassassin/sa-update-keys'
ListError etc/.pwd.lock [Errno 13] Permission denied: '/etc/.pwd.lock'
ListError etc/asl/config [Errno 13] Permission denied: '/etc/asl/config'
ListError etc/courier-imap/imapd [Errno 13] Permission denied: '/etc/courier-imap/imapd'
ListError etc/courier-imap/imapd-ssl [Errno 13] Permission denied: '/etc/courier-imap/imapd-ssl'
ListError etc/courier-imap/imapd-ssl.bak [Errno 13] Permission denied: '/etc/courier-imap/imapd-ssl.bak'
ListError etc/courier-imap/imapd-ssl.rpmorig [Errno 13] Permission denied: '/etc/courier-imap/imapd-ssl.rpmorig'
ListError etc/courier-imap/imapd-ssl.saved_by_plesk [Errno 13] Permission denied: '/etc/courier-imap/imapd-ssl.saved_by_plesk'
ListError etc/courier-imap/imapd.cnf [Errno 13] Permission denied: '/etc/courier-imap/imapd.cnf'
ListError etc/courier-imap/imapd.rpmorig [Errno 13] Permission denied: '/etc/courier-imap/imapd.rpmorig'
ListError etc/courier-imap/imapd.saved_by_plesk [Errno 13] Permission denied: '/etc/courier-imap/imapd.saved_by_plesk'
ListError etc/courier-imap/pop3d [Errno 13] Permission denied: '/etc/courier-imap/pop3d'
ListError etc/courier-imap/pop3d-ssl [Errno 13] Permission denied: '/etc/courier-imap/pop3d-ssl'
ListError etc/courier-imap/pop3d-ssl.bak [Errno 13] Permission denied: '/etc/courier-imap/pop3d-ssl.bak'
ListError etc/courier-imap/pop3d-ssl.rpmorig [Errno 13] Permission denied: '/etc/courier-imap/pop3d-ssl.rpmorig'
ListError etc/courier-imap/pop3d-ssl.saved_by_plesk [Errno 13] Permission denied: '/etc/courier-imap/pop3d-ssl.saved_by_plesk'
ListError etc/courier-imap/pop3d.bak [Errno 13] Permission denied: '/etc/courier-imap/pop3d.bak'
ListError etc/courier-imap/pop3d.cnf [Errno 13] Permission denied: '/etc/courier-imap/pop3d.cnf'
ListError etc/courier-imap/pop3d.rpmorig [Errno 13] Permission denied: '/etc/courier-imap/pop3d.rpmorig'
ListError etc/courier-imap/pop3d.saved_by_plesk [Errno 13] Permission denied: '/etc/courier-imap/pop3d.saved_by_plesk'
ListError etc/dcc/ids [Errno 13] Permission denied: '/etc/dcc/ids'
ListError etc/dcc/map [Errno 13] Permission denied: '/etc/dcc/map'
ListError etc/dcc/map.txt [Errno 13] Permission denied: '/etc/dcc/map.txt'
ListError etc/default/useradd [Errno 13] Permission denied: '/etc/default/useradd'
ListError etc/group- [Errno 13] Permission denied: '/etc/group-'
ListError etc/httpd/conf/httpd.pem [Errno 13] Permission denied: '/etc/httpd/conf/httpd.pem'
ListError etc/httpd/conf/workers.properties [Errno 13] Permission denied: '/etc/httpd/conf/workers.properties'
ListError etc/httpd/conf.d/000_mod_sed.conf [Errno 13] Permission denied: '/etc/httpd/conf.d/000_mod_sed.conf'
ListError etc/httpd/conf.d/zz010_psa_httpd.conf [Errno 13] Permission denied: '/etc/httpd/conf.d/zz010_psa_httpd.conf'
ListError etc/iscsi/iscsid.conf [Errno 13] Permission denied: '/etc/iscsi/iscsid.conf'
ListError etc/libaudit.conf [Errno 13] Permission denied: '/etc/libaudit.conf'
ListError etc/logrotate.d/apf [Errno 13] Permission denied: '/etc/logrotate.d/apf'
ListError etc/logrotate.d/named [Errno 13] Permission denied: '/etc/logrotate.d/named'
So what i did wrong?

Thnx in adavanced

Re: Snap shots of dedicated server

Posted: Tue May 03, 2011 12:02 pm
by hostingguy
probably needs to run as root.

Re: Snap shots of dedicated server

Posted: Wed May 04, 2011 6:43 am
by DarkF@der
I did the exact way what mikeshinn told in the tut....

Re: Snap shots of dedicated server

Posted: Wed May 04, 2011 12:25 pm
by hostingguy
in the tutorial its running as root. Is yours?

Re: Snap shots of dedicated server

Posted: Sat Jun 29, 2013 2:01 am
by biggles
Digging up an old post, but I'm having the exact same problem with ListError. It use to work as a charm on my old server but on the newly setup server I only get ListError. I have check the sudoers part, I have checked the authorized_keys command and really donät know what to try. Any suggestions?

Re: Snap shots of dedicated server

Posted: Mon Jul 01, 2013 7:48 am
by biggles
Ha! Found my mistake. The line in authorized_keys must be one line. First the restrictions then the key on ONE SINGLE LINE.

Re: Snap shots of dedicated server

Posted: Mon Jul 01, 2013 8:06 am
by breun
You can have multiple lines, but it's one authorized key per line. :)