LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-23-2013, 09:00 AM   #1
edbarx
Member
 
Registered: Sep 2010
Distribution: Used Debian since Sarge. (~2005)
Posts: 373

Rep: Reputation: 21
Saving backup archives on a separate computer running Debian.


In my past Windows days, I used to save files from one computer to another using the netbui protocol.

Is there any possibility of doing the same in Debian? If yes, what keywords in google search should I use?
 
Old 09-23-2013, 09:42 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Just use rsync or scp, work fine here.
 
Old 09-23-2013, 10:44 AM   #3
edbarx
Member
 
Registered: Sep 2010
Distribution: Used Debian since Sarge. (~2005)
Posts: 373

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by TobiSGD
Just use rsync or scp, work fine here.
Could you please, give me an example of any command syntax you would use?
 
Old 09-23-2013, 02:32 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Of course. To have this working easily you must run a SSH server on the target machine. To automate the whole thing you should enable and configure key-based authentication on the target machine. If you do the copy action manually and are comfortable with typing a password this isn't necessary.
I always use rsync for such actions, the syntax comes down to
Code:
rsync /path/to/source/on/local/machine remote_user@remote_machine:/path/to/target/folder/on/remote/machine
For example, if I want to copy the file /home/tobi/test.txt to the folder /data/backups on a remote machine called server (known with IP in my hosts file) using the user backup_user this would look like
Code:
rsync /home/tobi/test.txt backup_user@server:/data/backups
The rsync manpage is very extensive and has quite a lot examples, so it will definitely help to look at that.
 
Old 09-23-2013, 09:12 PM   #5
edbarx
Member
 
Registered: Sep 2010
Distribution: Used Debian since Sarge. (~2005)
Posts: 373

Original Poster
Rep: Reputation: 21
Thanks. I tested the command you gave me, but failed due to this error:
Code:
rsync /home/edbarx/sda3_24.09.2013.fsa edbarx@edbarx-dsk:/home/edbarx/
ssh: Could not resolve hostname edbarx-dsk: Name or service not known
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(605) [sender=3.0.9]

Last edited by edbarx; 09-23-2013 at 09:29 PM.
 
Old 09-23-2013, 09:42 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
That means that you have the machine edbarx-dsk not in your /etc/hosts and your DNS provider can not resolve that name. Either add the machine to /etc/hosts or use the IP instead.
 
Old 09-23-2013, 10:28 PM   #7
edbarx
Member
 
Registered: Sep 2010
Distribution: Used Debian since Sarge. (~2005)
Posts: 373

Original Poster
Rep: Reputation: 21
I used the IP, but I don't know if I am doing everything right. The 'remote' computer is connected to the same router with which the source machine is connected. The command I used is as follows:
Code:
~$ rsync /home/edbarx/sda3_24.09.2013/fsa edbarx@192.168.1.100:/home/edbarx/
ssh: connect to host 192.168.1.100 port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(605) [sender=3.0.9]
It appears that the 'remote' machine requires some configuration of which I have no idea.

Last edited by edbarx; 09-23-2013 at 10:30 PM.
 
Old 09-23-2013, 10:37 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Do you have a SSH daemon running on the target machine? This necessary to get this working.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: File Roller 3.8.3 Repairs Saving of New Archives LXer Syndicated Linux News 0 07-03-2013 11:00 AM
LXer: Running Vhosts Under Separate UIDs/GIDs With Apache2 mpm-peruser On Debian Etch LXer Syndicated Linux News 0 08-24-2008 01:10 PM
LXer: Running Vhosts Under Separate UIDs/GIDs With Apache2 mpm-itk On Debian Etch LXer Syndicated Linux News 0 08-15-2008 05:00 PM
Help with winrar - adding multiple files into separate archives some_random_dude Linux - Software 4 02-04-2007 11:05 AM
saving log information to a separate file cuss Linux - General 2 02-24-2003 11:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:28 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