You are missing the last single quote before you press enter hence the need for ^C as that command is waiting for the next line. Doesn't matter anyway because we know both rsyncd and vsftpd was not installed earlier.dmtparker wrote:I'm confused. See comments below.
Nazar78 wrote:Your network seems to be correct judging from the subnet /24.
Your last command is incomplete:I ran the above (copy and paste so no typo) and got no results (just '>' which I eventually terminated with ^C)Code: Select all
netstat -natp|grep -E ':(21|873) '
Server or client depends on which end initiating the transfer process and which endpoint is the receiver that usually runs the listening server daemon (D in rysncD/vsftpD stands for daemon). In this case you planned to use Asustor Backup & Restore Utility so the NAS is the client and the linux box is the server running the daemon. You can also switch this process the other way round but you'll have to install some backup apps on the linux box to initiate the transfer and the NAS needs to run the ftp or rsync daemon (enable them in the Asustor Portal Services).dmtparker wrote:I am sure I can get both up and working over the next day or two, but I'm again confused as to which is server and which is client. I would think the NAS would be server and my linux box client as I am trying to back up the linux box onto the NAS, but it looks like setting up rsyncd is to make the box a server?? As I said, ftp (run on the linux box) connects to the NAS just fine and transfers files fine, it is just not an automated process.
Take note rsync has two modes, one is unencrypted faster transfer which is rsync protocol (similar to ftp/http), the other is slightly slower transfer due to encryption overhead using SSH tunnel. Here is for rsync protocol. There's 3 ways to use the user/pass below assuming your linux box IP is 192.168.1.3:dmtparker wrote:Ok, I think I have both rsyncd and vsftpd up and running. I tried
CODE: SELECT ALL
rsync-rtn rsync://192.168.1.3
and got the listing of the two modules I had defined. When I tried to list the contents of the module, however, it failed as shown below. I am sure that relates to my defining who has access in the 'secrets' file. I put in my account and password and the root account and password, but how do I define the remote computer trying to log in? It didn't ask for a username, just a passsword
1. Environment
Code: Select all
RSYNC_PASSWORD="my-password" rsync -rtn rsync://mark@192.168.1.3/mark
Code: Select all
rsync -rtn --password-file=~/my-password-file rsync://mark@192.168.1.3/mark
Code: Select all
rsync -rtn --password-file=<(echo "my-password") rsync://mark@192.168.1.3/mark
Now open the Asustor's Backup & Restore utility, choose Remote Sync, click on Create, Server type: Rsync-compatible server, Transfer mode: Rsync-compatible server -> Your NAS, click Next and enter your linux box details (do not check the box Use encrypted transmission because you want to perform rsync not rsync over ssh tunnel), select the source folders on your linux box (the modules you've created earlier) then click Next, select the destination folder on your NAS. That's it, it's the same for vsftpd only that you'ld chose the FTP Backup option.dmtparker wrote:Also, how do I test vsftpd? And how does all this help me with the Backup Utility? What do I do next?
Thanks 10^6 for all the help.
Skip the testing vsftpd. I figured that out. It appears both are up and listening on the appropriate port. Now what do I do to use the Backup Utility?