[rdiff-backup-users] Re: Can one set up a login for rdiff-backup only (not via sshd_config)?
On Mon, Jan 04, 2010 at 01:34:39PM +, Chris G wrote: Is it possible to set up a dedicated login for rdiff-backup to use without using sshd_config? I have a NAS backup system which runs linux but has an ancient version of ssh on it which I don't want to play about with. So I'd prefer to create a dedicated login (a user called 'bak') which *only* allows rdiff-backup to run. Is there any way I can do this? I guess rdiff-backup needs a shell to run in so I can't just set the shell field in /etc/passwd to rdiff-backup --server. Would I get away with a .profile for the user that runs rdiff-backup --server or something like that with a --remote-schema set to nothing? I worked out how to do it after quite a bit of mucking about and experimentation, it needs a little shell script to run rdiff-backup as (at least on the system I was using) you can't add parameters to the 'shell' entry in /etc/passwd. Thus I ended up with an entry in /etc/passwd as follows:- bak:x:505:1000:Backup Login,,,:/bak:/opt/bin/rdb ...and /opt/bin/rdb is simply:- #!/bin/sh /opt/bin/rdiff-backup --server -- Chris Green ___ rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
[rdiff-backup-users] rdiff-backup on USB distro
Hi all, I was wondering, is there any distribution that is bootable from an USB stick and has rdiff-backup for use? I'm trying to mount a backup server but my boss would like me to check if there's a simple distribution so we could run from an USB stick. I've been looking around on DSL, Puppy and even FreeNAS but no luck though. I appreciate any help or directions. Renato E. Silva ___ rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Re: [rdiff-backup-users] rdiff-backup on USB distro
On Wed, Jan 06, 2010 at 02:08:37PM -0200, Renato E. Silva wrote: Hi all, I was wondering, is there any distribution that is bootable from an USB stick and has rdiff-backup for use? I'm trying to mount a backup server but my boss would like me to check if there's a simple distribution so we could run from an USB stick. I've been looking around on DSL, Puppy and even FreeNAS but no luck though. You can boot almost all live images with a persistent storage, and then install rdiff-backup and configure the system as you please. Or just do a normal installation to the USB stick. -- lfr 0/0 pgpjcTsEnluRN.pgp Description: PGP signature ___ rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
[rdiff-backup-users] A response to an old thread about --restrict-update-only
A while ago, in a long thread, the following was said:- Regarding first creating new repositories, yes, I think that too will be blocked. There was some discussion a few years ago about this: http://savannah.nongnu.org/bugs/?16897 ... I don't remember what was resolved. I suppose we could add os.mkdir() to the safe list. It's not a big issue for me, if/when I set up new clients and/or new hierarchies to back up I'm quite happy to do some manual backups or remove the --restrict-update-only from teh destination temporarily. Well, I can now confirm this is true, you can't create a new backup with a --restrict-update-only in place. However, once you have created the backup then --restrict-update-only can be added and seems to do what's expected. I have thus got the following in the ~/.ssh/authorized_keys file on the backup 'server':- command=rdiff-backup --server --restrict-update-only backups,no-pty,no-port-forwarding ssh-rsa the key I have a dedicated client account for running the backup which has a passphraseless ssh key and is restricted to only doing backups by the above. It's obviously not totally secure but it's good enough while at the same time doing backups daily with no effort on my part. (It's only one of several backups I do, each with different strengths and weaknesses) -- Chris Green ___ rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Re: [rdiff-backup-users] rdiff-backup on USB distro
Sorry I don't know of any at the moment. I use Devil-Linux (http://www.devil-linux.org/), and have requested that rdiff-backup be added. Let me know whether you find an alternative. If no other USB-stick distros support it then that alone is a good reason to add rdiff-backup to Devil-Linux. Dominic Renato E. Silva wrote: Hi all, I was wondering, is there any distribution that is bootable from an USB stick and has rdiff-backup for use? I'm trying to mount a backup server but my boss would like me to check if there's a simple distribution so we could run from an USB stick. I've been looking around on DSL, Puppy and even FreeNAS but no luck though. I appreciate any help or directions. Renato E. Silva ___ rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki ___ rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Re: [rdiff-backup-users] unable to restore files
Jakob Unterwurzacher a écrit , Le 06.01.2010 16:18: Alex Samad schrieb: On Mon, Jan 04, 2010 at 05:14:57PM +0100, Philippe wrote: If you just want the newest version of your files back you can simply copy them from the backup directory using FTP or rsync or whatever. Jakob Thanks for the reply Jakob, the problem is that I have a whole system to restore so I need to keep the ownership of the files. rsync will keep permissions and uid/gid rsync -aHSz The problem seems to be that the files all have the wrong owner because the backup was not done as root (so the files could not be chown'ed). Now rdiff-backup has to be used for the restore to set the correct owners again. Philippe, have you tried regressing manually? http://rdiff-backup.nongnu.org/FAQ.html#regress_failure Jakob Hi Jakob, in fact the regression faild because probably of a corrupt gzip file lying around, It was faster to reinstall all the stuff and pick up config files needed than trying to restore the backup for rdiff, sorry but I missed time to debug this part. Best regards Philippe ___ rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki