Rsync Backups on HostGator VPS


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Rsync Backups on HostGator VPS
# 1  
Old 10-05-2010
Question Rsync Backups on HostGator VPS

I'm wanting to do remote backups of the entire /home/* directory structure, which is where HG puts all www files and sets the user and group independently of any other user ( so /home/user1 will be using group user1, instead of a generic apache group)

The problem I'm running into is that only root has access to everything in /home

so I have a few options, and none of them are making my tummy happy.

1) ssh in with keys as root and perform rsync backups (I'd rather just turn off root logins via ssh)
2) sudo in as rsyncuser via ssh... problem? this error: sudo: sorry, you must have a tty to run sudo
I can disable the requiretty in the sudoers file.. but I suspect that's not too secure...
3) go through the hassle of getting all the user directories to be group readable... and make sure that the rysncuser is part of each of the groups for each user... and pray that in the process, it doesn't jack with any sites.
4) just backup each user independently, creating new keys for each user, manageing the rotations individually, and leaving it up to chance that when a new user is added that the backup scripts are updated as well.


Are there any better options than this? If not, which of the 4 is my best bet?

Thanks

Matt
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

1 VPS with 2 IP addresses. How to make them independent?

Code: auto ens3 iface ens3 inet static address 46.xx.xxx.1x7 netmask 255.255.252.0 broadcast 46.38.xxx.255 gateway 46.xx.xxx.1 auto ens3:0 iface ens3:0 inet static address 188.xx.xx.xx5 netmask 255.255.255.255 I want the... (1 Reply)
Discussion started by: oshihari
1 Replies

2. Shell Programming and Scripting

Rsync Error: rsync: link_stat failed: No such file or directory (2)

I wish to copy all the files & folder under /web/Transfer_Files/data/ on mymac1 (Linux) to remote server mybank.intra.com (Solaris 10) /tmp/ location I am using Ansible tool synchronize module which triggers the unix rsync command as below:rsync --delay-updates -F --compress --archive --rsh=ssh... (2 Replies)
Discussion started by: mohtashims
2 Replies

3. IP Networking

1 VPS with 2 IP addresses. How to make them independent?

I have this in /etc/network/interfaces: auto ens3 iface ens3 inet static address 46.xx.xxx.1x7 netmask 255.255.252.0 broadcast 46.38.xxx.255 gateway 46.xx.xxx.1 auto ens3:0 iface ens3:0 inet static address 188.xx.xx.xx5 netmask... (0 Replies)
Discussion started by: Douro
0 Replies

4. Proxy Server

ISP VPS, routing traffic

Hi guys I need to setup server/router in my firm. We got from our ISP dedicated server in their data center. It has a static IP and it servers as replacement for out DSL connection. I configured our internal server to be border gateway and to connects to data center. "Remote" admin installed... (0 Replies)
Discussion started by: solaris_user
0 Replies

5. UNIX for Dummies Questions & Answers

VPS webserver speed

Hello I recently bought this Centos 5.10 VPS. They already gave me pre-configured everything : But I still feel like my blogs/shopping cart sites loading very slow. I would like to clarify few things 1) I'm using Apache, should I upgrade my web server? ( I do not wish to go... (3 Replies)
Discussion started by: johnchristy
3 Replies

6. Shell Programming and Scripting

Backups using rsync

Hello all, I'm using nas4free as a SAN and am having troubles getting a backup of it's data to work properly. I've posted in the nas4free forums, but haven't received much help. Here is the code I'm using: #!/bin/sh {... (1 Reply)
Discussion started by: dpatino
1 Replies

7. UNIX for Dummies Questions & Answers

mysqld overloading cpu of VPS

Hi bros I have a VPS 512mb (Burst 2GB) with Kloxo installed and hosting few sites on it with not much traffic I am facing high cpu load for the last few days and seems mysqld is overloading the cpu Any suggestion will be appreciated Regards Rizwan Top output is as under top -... (2 Replies)
Discussion started by: rizwan65
2 Replies

8. Red Hat

Unable to Start X in Centos - VPS - SSH

# startx xauth: creating new authority file /root/.serverauth.18174 X Window System Version 7.1.1 Release Date: 12 May 2006 X Protocol Version 11, Revision 0, Release 7.1.1 Build Operating System: Linux 2.6.18-53.el5 i686 Red Hat, Inc. Current Operating System: Linux server1.... (0 Replies)
Discussion started by: mselvaprakash
0 Replies

9. Shell Programming and Scripting

Rsync Scripts for Offsite backups

I am currently bringing up an offsite location, right now I am in the process of copying some data offsite (about 400GB). The problem I see is that running a single rsync for everything is not using the available bandwidth and testing shows that I double in speed for each instance of Rsync I am... (3 Replies)
Discussion started by: mchasse
3 Replies

10. UNIX for Dummies Questions & Answers

Getting started with VPS management through UNIX

Hi everybody, I have a VPS account and I have hit my limit for domains to manage through Plesk. I now need to begin administering new domains through UNIX. I've never used UNIX before but do have some experience with command line environments. I was able to connect today (I think). So the next... (1 Reply)
Discussion started by: snarky
1 Replies
Login or Register to Ask a Question
PARALLEL-RSYNC(1)														 PARALLEL-RSYNC(1)

NAME
parallel-rsync - deploy files to listed hosts SYNOPSIS
parallel-rsync [OPTIONS] -h hosts.txt local remote DESCRIPTION
pssh provides a number of commands for executing against a group of computers, using SSH. It's most useful for operating on clusters of homogenously-configured hosts. parallel-rsync deploy files files to all hosts you listed. OPTIONS
-r --recursive recusively copy directories (OPTIONAL) -a ----archive use rsync -a (archive mode) (OPTIONAL) -z --compress use rsync compression (OPTIONAL) -h --hosts hosts file (each line "host[:port] [user]") -l --user username (OPTIONAL) -p --par max number of parallel threads (OPTIONAL) -o --outdir output directory for stdout files (OPTIONAL) -e --errdir output directory for stderr files (OPTIONAL) -t --timeout timeout (secs) (-1 = no timeout) per host (OPTIONAL) -O --options SSH options (OPTIONAL) -v --verbose turn on warning and diagnostic messages (OPTIONAL) EXAMPLE
# parallel-rsync -r -h hosts.txt -l irb2 foo /home/irb2/foo ENVIRONMENT
All four programs take similar sets of options. All of these options can be set using the following environment variables: o PSSH_HOSTS o PSSH_USER o PSSH_PAR o PSSH_OUTDIR o PSSH_VERBOSE o PSSH_OPTIONS SEE ALSO
parallel-ssh(1), parallel-scp(1), parallel-slurp(1), parallel-nuke(1), ssh(1), rsync(1) AUTHOR
Brent N. Chun <bnc@theether.org> COPYING
Copyright: 2003, 2004, 2005, 2006, 2007 Brent N. Chun NOTES
1. bnc@theether.org mailto:bnc@theether.org 03/30/2009 PARALLEL-RSYNC(1)