I have a file on my server that is changing constantly, it changes hourly, sometimes it changes every minute. The file is is growing, but not so fast.
This file is generated inside a dir called
/home/my_user/backup123/subnets.cfg, until here no problem.
This is my first question: Now I need to put this file on a remote server. What is the best way to do this? From my local server, that where the file is located or across the remote server?
Here is my second question: If I do across the remote server I think I need to use the wget command right? I have tried to use this command:
wget --user=my-user --password=password http://example.com/dir/subnets.cfg
But it is not working, it tells me "wrong user name". Of course I had use my own user name and password, but it is not working. I have permissions to the file and dir.
I need to get the subnets.cfg file and put it on my remote server, how can I do that?