Hello,
I am using Manjaro XFCE, I have a CentOS 7 Web Server (cPanel) here is situation what I want to achieve
a script that use
cp myfile myDestination
download myfile from remote ftp myDestination to my local Manjaro laptop on daily bases whenever get new file download and remove from remote server
I want to get this task without any human interaction because human can forget it
I want to get backup
There is some very good documentation on the rclone website:
And, it’s in the community repository:
$ pamac search rclone
[...]
rclone [Installed] 1.59.2-1 community
Sync files to and from Google Drive, S3, Swift, Cloudfiles, Dropbox and Google Cloud Storage
So it can be installed using:
pamac install rclone
Then it’s easy to configure it:
rclone config
Use it:
But first
It’s important to ensure your provider is supported:
Log into your cPanel account.
In the “Files” section, click on “Backup” Icon.
Under “Full Backup“, Click on “Download a Full Website Backup” button.
From Dropdown menu, Select Backup destination to “Remote FTP Server“, In Email field enter your email address.
The Forum is a place were community users volunteer to help other users and share knowledge, the response time is usually good, however an answer is never guaranteed and always depends of the quality of your question.
Saying that something does not work without providing output, or that you don’t want to spend time reading some documentation and only want a solution is not going to take you far, as the community volunteers are not paid workers and the forum is not to be used as a commercial support service.
<action> is the action rclone should perform; I.e. sync, copy, check and more.
<source> is the source of the file/directory; I.e.: where it’s copied from.
<destination> is the destination of the file/directory; I.e. where it’s copied to.
I haven’t tested it yet, but from my understanding, <source> can be either the local or the remote directory. Likewise <destination>.
And there’s also the bisync action:
And the mount action:
As for the scripts, no, I don’t mind sharing, but it’ll have to wait until a bit later. And besides, you’ll learn more if you figure it out yourself. And they’re anyway just for uploading, not downloading, as you require.