Snap shots of dedicated server

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
DarkF@der
Forum Regular
Forum Regular
Posts: 313
Joined: Thu May 07, 2009 12:46 pm

Snap shots of dedicated server

Unread post by DarkF@der »

Hello,

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

Thnx in advanced
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Snap shots of dedicated server

Unread post by scott »

We use rdiff-backup here
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: Snap shots of dedicated server

Unread post 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.
Lemonbit Internet Dedicated Server Management
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4152
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Re: Snap shots of dedicated server

Unread post 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.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: Snap shots of dedicated server

Unread post 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.
Lemonbit Internet Dedicated Server Management
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4152
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Re: Snap shots of dedicated server

Unread post 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. :-)
DarkF@der
Forum Regular
Forum Regular
Posts: 313
Joined: Thu May 07, 2009 12:46 pm

Re: Snap shots of dedicated server

Unread post 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
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4152
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Re: Snap shots of dedicated server

Unread post 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.
DarkF@der
Forum Regular
Forum Regular
Posts: 313
Joined: Thu May 07, 2009 12:46 pm

Re: Snap shots of dedicated server

Unread post 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
hostingguy
Forum Regular
Forum Regular
Posts: 661
Joined: Mon Oct 29, 2007 6:51 pm

Re: Snap shots of dedicated server

Unread post by hostingguy »

probably needs to run as root.
DarkF@der
Forum Regular
Forum Regular
Posts: 313
Joined: Thu May 07, 2009 12:46 pm

Re: Snap shots of dedicated server

Unread post by DarkF@der »

I did the exact way what mikeshinn told in the tut....
hostingguy
Forum Regular
Forum Regular
Posts: 661
Joined: Mon Oct 29, 2007 6:51 pm

Re: Snap shots of dedicated server

Unread post by hostingguy »

in the tutorial its running as root. Is yours?
biggles
Forum Regular
Forum Regular
Posts: 806
Joined: Tue Jul 15, 2008 2:38 pm
Location: Sweden
Contact:

Re: Snap shots of dedicated server

Unread post 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?
biggles
Forum Regular
Forum Regular
Posts: 806
Joined: Tue Jul 15, 2008 2:38 pm
Location: Sweden
Contact:

Re: Snap shots of dedicated server

Unread post 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.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: Snap shots of dedicated server

Unread post by breun »

You can have multiple lines, but it's one authorized key per line. :)
Lemonbit Internet Dedicated Server Management
Post Reply