It seems that you would like to make a backup/copy of data in one computer into another.
A very simple and secure solution might be using scp
which is based on ssh
.
scp
sample command might look like:
scp -r /path/to/local/folder user@remotehost:/path/to/remote/folder
e.g.
Note: You can run the scp command
using crontab
man scp
scp — secure copy (remote file copy program)
DESCRIPTION
scp copies files between hosts on a network. It uses ssh(1) for data
transfer, and uses the same authentication and provides the same security
as ssh(1). Unlike rcp(1), scp will ask for passwords or passphrases if
they are needed for authentication.
File names may contain a user and host specification to indicate that the
file is to be copied to/from that host. Local file names can be made
explicit using absolute or relative pathnames to avoid scp treating file
names containing ‘:’ as host specifiers. Copies between two remote hosts
are also permitted.
-r Recursively copy entire directories. Note that scp follows
symbolic links encountered in the tree traversal.
There are some pre-requites:
sshd
should run on the remote host
- Setting password-less ssh access to remote host - see askubuntu Q&A