Backing up From DNS-343 to DNS-323?Rsync

1,493 views
Skip to first unread message

Sumdumphuc

unread,
Jul 29, 2012, 12:35:15 PM7/29/12
to

Hi,
I have 1 DNS-343 with D-Link F/W:1.05
and 2 DNS-323 with Alt-F Flashed(well 1 at this moment till I get it running smoothly then second will follow)

The 343 is the storage (Source) 192.168.1.105
the 323's are the Backup (destination) 192.168.1.114 (no need for second 323 IP yet)

Inside the 343 D-Link F/W I have done the set up as below;



Inside the 323 Alt-F F/W I have done the set up as below;

I know this is wrong as it does not back up, Also there is no where on Alt-F F/W to add the password (unless the password pop comes after).
When I press the backup now button nothing happens, no error msg, no change, the only way to know it doesn't work is to go into the the HDD and see it is still empty.

Anyone know how to set this up to work?
Thanks

Sumdumphuc

unread,
Jul 29, 2012, 12:41:28 PM7/29/12
to

I also forgot to mention in the 323 Alt-f  I did start the services in Services/system.

& also found 1 mistake already
where I filled in the host (above's post Alt-f screen shot) with "http://192.168.1.105", I removed "http://". so now reads 192.168.1.105 but still doesn't seem to work......


Joao Cardoso

unread,
Jul 29, 2012, 5:51:14 PM7/29/12
to al...@googlegroups.com
I don't know what the 434 "expects to find" on the other host, the 323, so until this is clarified I can't help you much.
You should first get the details on how the 434 Backup works.

There are two possibilities, plus more two, plus more two, so a total of 2^3= 8 possibilities exists, if I didn't forgot none ;-(

The following is a mere conjecture!
From the screen-shoots it looks to me that the 434 backup program expects a rsync daemon (with optional or required ssh encryption?) on the other host. If this is the case, you don't need to configure the Alt-F Backup program, and you should instead configure rsync using Services->Network->inetd->rsync Configure. You should create a "Module Name" based on a given Folder and specify who can access it. For a start allow everybody read/write.
In this situation, it is the 434 that takes the initiative to do the backup.

The following is relative to the Alt-F Backup script.

The Alt-F Backup program should be used when it is desired that it takes the initiative to do the backup, and it expects a rsync daemon (or a being able to do a ssh+rsync connection) on the other host, the 434.
As the Alt-F Backup online help says:
rsync this mode of operation uses the rsync program to make the backup. It can work in two modes: using rsync/ssh or a rsync daemon on the remote host.
The backup script first tries to use the daemon mode, and if unsuccessful tries the rsync/ssh mode.
    • For the daemon mode, there must exist a rsync user with the same nick name and password in both computers, and a remote rsync daemon must be setup first. In the remote host a file /etc/rsyncd.secrets must exist with lines of the form user:password and the file /etc/rsyncd.conf must contain the definition of the module to backup.
    • The Directory entry must start with the daemon module name to backup.
    • If Directory is vuze/plugins and a rsync module named vuze exists in host silver, where user Run As has permissions to use the module and its nick:password is in the /etc/rsyncd.secrets file, then the backup will be located in /Backup/silver_vuze_plugins.
    • In the rsync/ssh mode, password-less login using ssh cryptographic keys has to be manually setup.
    • If a .ssh/identity file is not found in the Run As home directory, ssh keys will be created for him and a file with instructions left in his home directory. After following the instructions the backup should proceed normally.
    • If host is silver, Directory is workspace and Run As is jcard, then the backup will be located in /Backup/silver_jcard_workspace/.
To see if the 434 is running a rsync daemon that the 323 Backup program can use, you can use the command 'rsync <434 ip>::' at the Alt-F command line.
Alt-F web UI creates automatically a rsync module for every share; as an example, running 'rsync nas::' on my linux laptop shows that the following modules are available on my 323:

 jcard@flash:~/alt-f> rsync nas::
Public-RO       Public Area for reading only
Public-RW       Public Area for reading and writing
Backup          Backup area
Root            For development only
jcard           Joao Cardoso home directory
Joao Cardoso    Joao Cardoso home directory
mlima           Manuela Lima home directory
Manuela Lima    Manuela Lima home directory


For the logs, you should examine the System Log, System->Utilities->View Logs, and you can filter the output with the 'backup' word

Joao Cardoso

unread,
Jul 30, 2012, 10:58:20 AM7/30/12
to al...@googlegroups.com


From this discussion, http://forums.dlink.com/index.php?topic=9488.msg56646#msg56646, set the 343 as you did and hit the "START REMOTE SERVER" button (in reality I think that it should be called the *local* rsync server!).
Then, in the 323, at the command line, type

   rsync 192.168.1.105::

and see if the 343 is offering 'Volume_1' or 'Backup'
If the 343 is offering a share (in rsync parlance it is called a "module"), try to access it using at the command line:
   
   rsync -nr 192.168.1.105::Volume_1 # or Backup, or whatever is offered

This command only recursively (r) lists files, none (n) is transferred.
If a password is asked, enter the password you specified in the 343.
See the file list? if yes, then you have to change the password in the 343 for the same password as the user you will specify in the "runas" in the 323.
Suppose that you have a 323 user called 'user' with password 'pass'. Now try the following command specifying 'pass' as the password (after changing it in the 343)

   rsync -nr us...@192.168.1.105::Volume_1 # or Backup, or whatever is offered

Still getting the file list? Fine, specify in the Alt-F Backup page: type rsync, runas user, host 192.168.1.105, folder Volume_1 (or Backup, whatever is offered), when <when>, at <at> and Submit it! After the screen reappears, hit the Backup now. The backup will happen in the background.
Go to System->Utilities->View Logs, System Log, go to the end of the list (or filter with the 'backup' work, then hit Refresh button). No errors? errors? post them.

The most problematic question is what user to choose as the "runas" user, as it is its password that will be sent to the 343. And that user name has to be accepted on the 343 as a valid user to access the rsync module (share).

Do you have ffp in the 343? Can you can login it and watch /etc/rsyncd.conf (assuming that that file is the one used by the Dlink Backup program, not by ffp rsync). A 'ps' can also be enlightened, as it might show some details.

In the above I'm assuming that the 343 Backup program is running a rsync daemon, not a ssh+rsync setup...

Please report back your findings
Reply all
Reply to author
Forward
0 new messages