How to backup from NAS to local hard drive or vice versa?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to backup from NAS to local hard drive or vice versa?
I'm dual-booting Ubuntu 12.04 and Windows 7. The only thing I still do in Windows is use Double Image to backup my data from my D-Link DNS 321 NAS to a local hard drive. Once I learn how to do such a backup in Ubuntu, I'll probably not use Windows anymore.
Here is one requirement for the backup: Backed up files are as the original files (not in a backup format)
In Ubuntu Places, I can see and access my NAS, but from inside Linux backup programs such as Duplicity and BackinTime, my NAS is not visible.
My question: is there a way in Linux, using software and little if any command line programming, to backup data from my NAS to a local hard drive? If so, could you please inform me? Thank you.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
Quote:
Originally Posted by tjoel99
My question: is there a way in Linux, using software and little if any command line programming, to backup data from my NAS to a local hard drive? If so, could you please inform me? Thank you.
there is a program called bacula, which is a backup manager, not sure if it's command line or gui but webmin http://webmin.com/ can manage bacula nicely.
other than that, most of the software is command line, not that you always have to type the command, you can learn enough just long enough to write a quick script and run that with cron.
A few hundred ways to backup maybe. Each has some issues good and bad.
General ways. You shouldn't need any sort of file by file copy. Almost any backup plan can dig into some compressed format and retrieve a file.
Backup to a single compressed file. Modern linux can usually dig into the file and get single or groups of files back.
Clone image of disk or partitions. Again linux can mount those images.
Backup only files that you select by schema on.
Could go wild with an isci target deal and rsync it all.
IIn Ubuntu Places, I can see and access my NAS, but from inside Linux backup programs such as Duplicity and BackinTime, my NAS is not visible.
and why do those programs not see your NAS? is it not mounted? If it is mounted properly then those programs will detect it as just an other storage location. Worse case enable FTP on your NAS and im sure at least one of those programs can push the data either via FTP or rsync.
Why so afraid of the command line? if you really want to do something or learn something in linux use the command line.
Depending on what you want to backup you could write a simple BASH script containing a few dozen lines and be done with it.
Many file browsers have a SMB/CIFS (the windows file and printer sharing protocol) client built in so it isn't necessary to mount the file system. This is why the backup programs do not "see" the NAS.
As stated you should mount the NAS like:
mount -t cifs /NAS_IP_address/share_name /media/NAS
You will need to create a directory first to use as a mount point.
Many file browsers have a SMB/CIFS (the windows file and printer sharing protocol) client built in so it isn't necessary to mount the file system. This is why the backup programs do not "see" the NAS.
As stated you should mount the NAS like:
mount -t cifs /NAS_IP_address/share_name /media/NAS
You will need to create a directory first to use as a mount point.
and that was what i was trying to get the OP to understand. if the NAS is not mounted, NO software will see it unless told to mount it.
the OP could place a fstab entry or make an autofs file or what ever the replacement for autofs is called, or the OP can just manually learn how to use the CLI and mount the drive properly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.