Solved

Rsync to backup to NAS (NSLU2)

Posted on 2008-06-11
5
2,113 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 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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

Each year, investment in cloud platforms grows more than 20% (https://www.immun.io/hubfs/Immunio_2016/Content/Marketing/Cloud-Security-Report-2016.pdf?submissionGuid=a8d80a00-6fee-4b85-81db-a4e28f681762) as an increasing number of companies begin to…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

617 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