store | blogs | forums | twitter | facebook | wiki | downloads | support portal
Atomic Secure Linux
It is currently Fri Oct 31, 2014 7:36 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Snap shots of dedicated server
Unread postPosted: Tue Apr 12, 2011 5:11 am 
Offline
Forum Regular
Forum Regular

Joined: Thu May 07, 2009 12:46 pm
Posts: 297
Hello,

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

Thnx in advanced


Top
 Profile  
 
 Post subject: Re: Snap shots of dedicated server
Unread postPosted: Tue Apr 12, 2011 7:55 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7946
Location: earth
We use rdiff-backup here


Top
 Profile  
 
 Post subject: Re: Snap shots of dedicated server
Unread postPosted: Tue Apr 12, 2011 10:04 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
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


Top
 Profile  
 
 Post subject: Re: Snap shots of dedicated server
Unread postPosted: Tue Apr 12, 2011 1:51 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3661
Location: Chantilly, VA
Quote:
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.

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
 Post subject: Re: Snap shots of dedicated server
Unread postPosted: Tue Apr 12, 2011 2:00 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
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


Top
 Profile  
 
 Post subject: Re: Snap shots of dedicated server
Unread postPosted: Tue Apr 12, 2011 2:30 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3661
Location: Chantilly, VA
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. :-)

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
 Post subject: Re: Snap shots of dedicated server
Unread postPosted: Sun May 01, 2011 6:15 pm 
Offline
Forum Regular
Forum Regular

Joined: Thu May 07, 2009 12:46 pm
Posts: 297
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


Top
 Profile  
 
 Post subject: Re: Snap shots of dedicated server
Unread postPosted: Mon May 02, 2011 4:46 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3661
Location: Chantilly, VA
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.

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
 Post subject: Re: Snap shots of dedicated server
Unread postPosted: Tue May 03, 2011 6:14 am 
Offline
Forum Regular
Forum Regular

Joined: Thu May 07, 2009 12:46 pm
Posts: 297
Thnx for the tut....

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

Code:
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


Top
 Profile  
 
 Post subject: Re: Snap shots of dedicated server
Unread postPosted: Tue May 03, 2011 12:02 pm 
Offline
Forum Regular
Forum Regular

Joined: Mon Oct 29, 2007 6:51 pm
Posts: 645
probably needs to run as root.


Top
 Profile  
 
 Post subject: Re: Snap shots of dedicated server
Unread postPosted: Wed May 04, 2011 6:43 am 
Offline
Forum Regular
Forum Regular

Joined: Thu May 07, 2009 12:46 pm
Posts: 297
I did the exact way what mikeshinn told in the tut....


Top
 Profile  
 
 Post subject: Re: Snap shots of dedicated server
Unread postPosted: Wed May 04, 2011 12:25 pm 
Offline
Forum Regular
Forum Regular

Joined: Mon Oct 29, 2007 6:51 pm
Posts: 645
in the tutorial its running as root. Is yours?


Top
 Profile  
 
 Post subject: Re: Snap shots of dedicated server
Unread postPosted: Sat Jun 29, 2013 2:01 am 
Offline
Forum Regular
Forum Regular

Joined: Tue Jul 15, 2008 2:38 pm
Posts: 778
Location: Sweden
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?


Top
 Profile  
 
 Post subject: Re: Snap shots of dedicated server
Unread postPosted: Mon Jul 01, 2013 7:48 am 
Offline
Forum Regular
Forum Regular

Joined: Tue Jul 15, 2008 2:38 pm
Posts: 778
Location: Sweden
Ha! Found my mistake. The line in authorized_keys must be one line. First the restrictions then the key on ONE SINGLE LINE.


Top
 Profile  
 
 Post subject: Re: Snap shots of dedicated server
Unread postPosted: Mon Jul 01, 2013 8:06 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
You can have multiple lines, but it's one authorized key per line. :)

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group