LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-11-2013, 10:32 PM   #1
tjoel99
LQ Newbie
 
Registered: Jul 2013
Posts: 1

Rep: Reputation: Disabled
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.
 
Old 07-12-2013, 01:34 AM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Quote:
Originally Posted by tjoel99 View Post
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.
 
Old 07-12-2013, 03:56 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
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.

From ubuntu pages. https://help.ubuntu.com/community/BackupYourSystem

Forgot clonezilla and commercial tools like Acronis.

As to why NAS isn't "found", you'd have to explain more. How does linux find it?

Last edited by jefro; 07-12-2013 at 08:16 PM.
 
Old 07-12-2013, 05:08 PM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by tjoel99 View Post
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.
 
Old 07-12-2013, 05:44 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
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.
 
Old 07-12-2013, 07:55 PM   #6
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by michaelk View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to open windows hard drive in opensuse12.2 and vice versa ajay06081993 Linux - Newbie 7 10-11-2012 10:33 AM
Can I use a virtual machine hard disk as a real hard disk, or vice versa? onlineapps Linux - Software 1 02-24-2007 08:40 PM
access external hard drive linux partition on linux and vice versa garyozzy Linux - Newbie 2 08-03-2005 06:11 PM
Accessing a local windows 2000/xp filesystem from linux and vice versa kaplan71 Fedora 6 05-24-2005 08:46 AM
accessing win2k files from R.H 7.1 and vice versa that are on the same hard drive iquadri1 Linux - Networking 8 10-03-2001 10:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration