rsync backup to dreamhost account?

Discuss backup and restore functions of the DiskStation with respect other DiskStations, USB/eSATA, Amazon S3, network backup, or other rsync clients.

rsync backup to dreamhost account?

Postby race » Fri Oct 12, 2007 11:16 am

Dreamhost has very large, and very cheap hosting deals (500GB+). They also allow you to do backups to the online disk space using rsync.

http://wiki.dreamhost.com/index.php/Rsync_Backup

I think this would be a perfect way to make an offline backup of a diskstation. And I think the network backup function in the new firmware could do the job. Unfortunately, since I lack any linux knowledge I, have no idea whether I am right on this, and how to accomplish this if I am.

Can anyone clear this up for me, and possibly provide a step-by-step instruction on how to set this up with a DS (107+)?
race
Beginner
Beginner
 
Posts: 23
Joined: Wed Jul 11, 2007 3:38 pm

Re: rsync backup to dreamhost account?

Postby rpvrpv » Thu Jul 03, 2008 10:42 pm

Hi Race,

Did you find an answer already on your question?

I curious too how to setup dreamhost rsync with my 207+
rpvrpv
Trainee
Trainee
 
Posts: 16
Joined: Mon Jun 30, 2008 12:30 pm
Location: Leiden, Netherlands

Re: rsync backup to dreamhost account?

Postby race » Fri Jul 04, 2008 8:25 am

No, I gave up. I contacted Dreamhost and they confirmed they do not allow you to use their space for online backups. I use rsyncpalace now, which works fine.
race
Beginner
Beginner
 
Posts: 23
Joined: Wed Jul 11, 2007 3:38 pm

Re: rsync backup to dreamhost account?

Postby rpvrpv » Sun Jul 06, 2008 7:40 pm

Hi Race

Ok thx for letting me know and for the tip of rsyncpalace.

Brgds, Rob
rpvrpv
Trainee
Trainee
 
Posts: 16
Joined: Mon Jun 30, 2008 12:30 pm
Location: Leiden, Netherlands

Re: rsync backup to dreamhost account?

Postby cloink » Fri Oct 09, 2009 2:26 pm

*bump*

DH now allows up to 50GB of free backups, using rsync (for customers: https://panel.dreamhost.com/index.cgi?tree=users.backup ). So I was wondering: anyone got this working yet? Especially the "Backup module" has me a bit stumped... :?
User avatar
cloink
Trainee
Trainee
 
Posts: 12
Joined: Fri May 09, 2008 8:17 am

Re: rsync backup to dreamhost account?

Postby cloink » Fri Oct 09, 2009 2:50 pm

Got a reply from DH, yet I'm even more puzzled now... :(

The method of rsync transfer allowed on our servers is rsync over ssh. If
your NAS is linux based and you can get a shell on it this can probably
be setup but you might need to lookup to see if its management feature of
rsync supports rsync over ssh or not. Through *nix this would be done
using rsync -e 'ssh'
User avatar
cloink
Trainee
Trainee
 
Posts: 12
Joined: Fri May 09, 2008 8:17 am

Re: rsync backup to dreamhost account?

Postby william.chuang » Sat Dec 26, 2009 2:32 am

I spent a few hours searching the web on how to have the Synology NAS automatically rsync to the DreamHost backup account. I think I figured it out. Please review the process to see if it works, and how to improve it.

As you might know, DreamHost now allows you to back up to 50 gigs of your files onto their servers. Each DreamHost account gets one backup account that you have to set up from the DreamHost control panel. Once you set it up, you will get a login, password, and server. The DreamHost backup server is currently "hanjin.dreamhost.com" and the login is bxxxxxx (where x are numbers). The home directory in your DreamHost backup account is bxxxxxx. You can't ssh into the DreamHost account, so you have to use a SFTP client to access it. I used FileZilla.

The first step is to make your Synology rsync into DreamHost without a password prompt, so you can script the process later on. SSH into your Synology using the root account, which has the same password as your admin account. Type in "mkdir /root/.ssh" to create a directory, and switch to it by typing in "cd /root/.ssh". Create your keys by entering "ssh-keygen -t rsa". This should create two files in your /root/.ssh directory, one of them named "id_rsa.pub". That's your public key.

Use a SFTP client to access your DreamHost backup account. Create a directory named ".ssh" on your DreamHost backup home directory. Copy "id_rsa.pub" from your Synology to your DreamHost backup account using your SFTP client, then rename it to "authorized_keys". Use your SFTP client to set the share of this file to 644. Create your backup folder on the DreamHost backup account. I called it "backup".

Type this command into your Synology:
rsync -aP --protocol=29 /mnt/volume1/* bXXXXXXX@backup.dreamhost.com:backup

It should ask if you're sure you want to add the DreamHost server. Type in "yes" and hit enter. It should not ask for your password. If it does, something is wrong. If it does not ask for a password, the rsync should start uploading documents. If it doesn't, something is wrong. If it starts uploading files, break the operation using Ctrl-C.

If everything works, all that is left to do is to add the job to the Synology NAS crontab. First, copy the rsync command into a file named autorsync.sh. Copy autorsync.sh to /volume1 on your Synology. Edit /etc/crontab on your Synology to add the following line to it.

0 1 * * * root /volume1/autorsync.sh

Then restart the cron process by typing the following commands into the Synology prompt:
/usr/syno/etc.defaults/rc.d/S04crond.sh stop
/usr/syno/etc.defaults/rc.d/S04crond.sh start

This should have rsync run every morning at 1 AM. I have this running on my system. I hope this helps.
william.chuang
I'm New!
I'm New!
 
Posts: 6
Joined: Sat Dec 26, 2009 2:05 am

Re: rsync backup to dreamhost account?

Postby cloink » Sat Jan 02, 2010 11:42 am

This works great, thanks a lot ! :D
User avatar
cloink
Trainee
Trainee
 
Posts: 12
Joined: Fri May 09, 2008 8:17 am

Backup on Dreamhost

Postby zetoz » Sat Nov 13, 2010 4:02 pm

Hello

I'd like to backup my Nas on my Dreamhost. I found a thread on this site but I have an issue.

Post
viewtopic.php?f=3&t=5120

Step
rsync -aP --protocol=29 /mnt/volume1/photo/* b377756@backup.dreamhost.com:backup

When I run this command, I've got this error "rsync: change_dir "/mnt/volume1/photo" failed: No such file or directory (2)
0 files to consider"

Could you help me please ?
Thanks
Zetoz
zetoz
I'm New!
I'm New!
 
Posts: 1
Joined: Sat Nov 13, 2010 3:49 pm

Re: rsync backup to dreamhost account?

Postby HarryPotter » Sat Nov 13, 2010 4:23 pm

I dont understand "/mnt/volume1/..."

Try with "/volume1/...."
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS712+ / DSM 4.2 3211 / 2 x HD204UI (RAID0) / LMS 7.7.2-007
DS110+ / DSM 4.2 3211 / HD154UI
DS408 / DSM 4.0 2228 / 3 x ST31000340AS (RAID0) + 1 x HDS721010KLA330
DS207+ / DSM 3.1.1636 / ST31000340AS + WD5000KS
DS-106x / DSM 4.0 2228 (from DS108j) /

2 Squeezebox 3 + Boom
Rapsody N35

APC Smart UPS SUA750i
User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
 
Posts: 12390
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Backup to FTP server

Postby midas.m » Sat Nov 20, 2010 1:31 am

Hi,

I own a DS211 and also have an account at DreamHost. Since you have unlimited space there, I would like to backup some data of my DS211 to a new account created at DreamHost. Is there a possibility to upload files from the DS211 to an FTP site?

Any help would be highly appreciated!

Midas
midas.m
I'm New!
I'm New!
 
Posts: 1
Joined: Sat Nov 20, 2010 1:26 am

Re: rsync backup to dreamhost account?

Postby mcduarte2000 » Fri Jan 27, 2012 5:10 pm

Hi,

Is there a way of doing this using the Backup Wizard? What seems to be missing here is the "Backup module" info... I would prefer to implement this backup using the DSM.

PS: Answering to myself: on the "Backup module" just use the full path of the Dreamhost server (if you sftp to the server you can find it on Filezilla, on the "remote address" field). On my case it was something like /vol/shelf5/kills/bxxxxx (if you want to backup to a subfolder, just include it). I also enabled encryption and compression. It is working perfectly! :)

For 50GB free plus .10 cents/gb/month on data over the 50GB, I think this is probably one of the best deals on the net. If you want to try, you can also get a 60USD discount on registering in Dreamhost using "SYNOLOGY" as the promocode.

PS2: For encrypting the backups on the remote server, just encrypt the contents on your diskstation, the RSYNCed files will be encrypted. I encrypted my personal documents, and left photos and videos (the big files) unencrypted. So the performance impact is not so big, as personal documents are generally small in size.
mcduarte2000
Beginner
Beginner
 
Posts: 25
Joined: Mon Jan 16, 2012 10:17 pm

Re: rsync backup to dreamhost account?

Postby mihaiv » Tue Mar 13, 2012 9:47 pm

mcduarte2000, how did you get it working using the Backup Module?

For the settings I have:
I select Network Backup (R-Sync compatyble server)

Server: hanjin.dreamhost.com
Username: bxx0000
Password: ******
Backup Module: <blank> When I try to select it it says: "Failed to connect to remote server. Please check ... The network backup service has been started at the remote destination"

What do you do differently? I also tried to put in the path but no success.

Thanks

Mike
mihaiv
I'm New!
I'm New!
 
Posts: 1
Joined: Tue Mar 13, 2012 9:31 pm

Re: rsync backup to dreamhost account?

Postby mcduarte2000 » Wed Mar 28, 2012 10:14 pm

What is missing in your configuration seems to be just the path. Did you already tried to login with the SFTP to your hanjin account and check for the complete path?

mihaiv wrote:mcduarte2000, how did you get it working using the Backup Module?

For the settings I have:
I select Network Backup (R-Sync compatyble server)

Server: hanjin.dreamhost.com
Username: bxx0000
Password: ******
Backup Module: <blank> When I try to select it it says: "Failed to connect to remote server. Please check ... The network backup service has been started at the remote destination"

What do you do differently? I also tried to put in the path but no success.

Thanks

Mike
mcduarte2000
Beginner
Beginner
 
Posts: 25
Joined: Mon Jan 16, 2012 10:17 pm


Return to Backup/Restore for DiskStation to DiskStation/USB/eSATA/Off-site backups

Who is online

Users browsing this forum: jee27 and 4 guests