Solved

Rsync to backup to NAS (NSLU2)

Posted on 2008-06-11
5
2,091 Views
Last Modified: 2013-12-01
Hi,

I have an OpenSUSE 10.3 server and wish to periodically backup files in my home directory to a Cisco NSLU2 NAS in an incremental "copy only what has changed" fashion. The only way I know how to do this is to connect to the remote NAS via SSH - however the NSLU2 does not have an ssh daemon.

Is there any way I would go about hacking the device to be able to use cron to automatically backup files to the NAS via the local network?

Cheers
0
Comment
Question by:subz0r69z0r
  • 3
  • 2
5 Comments
 
LVL 21

Expert Comment

by:robocat
ID: 21772723

First, mount a share from the NAS on your server

mount -t smbfs //nasname/sharename /mnt/somedirectory

Then perform a local rsync between home directory and the mounted  directory on the nas.

rsync [rsync options here] /home/someuser /mnt/somedirectory/backup

0
 

Author Comment

by:subz0r69z0r
ID: 21774607
Hi Robocat,

That works well - thanks!

Will this make the mapping permanent, or will it not survive the reboot? Is there an entry I need to add to fstab?

Cheers
0
 

Author Comment

by:subz0r69z0r
ID: 21774775
Forgot to mention that it appears that smbfs is depreciated, I had to use cifs. I also used a credential file that I placed in /etc/smb.secret.
0
 
LVL 21

Accepted Solution

by:
robocat earned 500 total points
ID: 21776666

You could put the mount in fstab if you want to make it permanent

or make a script:

mount -t cifs ...
rsync ...
umount ...

This way you don't spend any server/nas resources when a backup is not taking place
0
 

Author Closing Comment

by:subz0r69z0r
ID: 31466412
cheers
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Suggested Solutions

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now