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
Solved

Rsync to backup to NAS (NSLU2)

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Fine Tune your automatic Updates for Ubuntu / Debian
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

856 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