?
Solved

Rsync to backup to NAS (NSLU2)

Posted on 2008-06-11
5
Medium Priority
?
2,117 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 22

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 22

Accepted Solution

by:
robocat earned 2000 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
The business world is becoming increasingly integrated with tech. It’s not just for a select few anymore — but what about if you have a small business? It may be easier than you think to integrate technology into your small business, and it’s likely…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

719 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