TLDR;
I WANT TO SYNC SIBLING DIRECTORIES IN MY HOME DIRECTORY INTO THE REMOTE, SYNCED DIRECTORY IN MY HOME DIRECTORY AND HAVE IT ALL SYNC UP TOGETHER NO MATTER WHICH ONE I WORK IN.
Ubuntu Version
~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.2 LTS
Release: 24.04
Codename: noble
~$ uname -r
6.8.0-53-generic
Rclone Version
~$ rclone version
rclone v1.69.1
- os/version: ubuntu 24.04 (64 bit)
- os/kernel: 6.8.0-53-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.24.0
- go/linking: static
- go/tags: none
Rclone Config Mounts Remote File System
~$ rclone config redacted
[MEGA]
type = mega
user = XXX
pass = XXX
### Double check the config for sensitive info before posting publicly
Metadata
- Mount Directory Name:
MEGA
- Mount Directory Path:
/home/jake/MEGA
- Remote Name:
MEGA:
- Service File Name:
rclone-mega-sync.service
- Service File Path:
/home/jake/.config/systemd/user/
Please Note: the value user
in the service file path /home/jake/.config/systemd/user/
is actually a default directory (I had nothing to do with that).
Goal
To be able to sync sibling directories in the home directory (the mount directory is in my home directory) into the locally mounted remote filesystem (MEGA online storage) so that they can continue to live where they are whilst at the same time being a part of the sync directory and of the cloud storage itself (some directories I don’t want to move into the sync directory to do this).
Expected Result
- To have sibling directories (sibling to
~/MEGA
in the home directory) that appear in the~/MEGA
mount directory.- That I am able to work in a sibling directory and have changes reflected in the other two.
- To also be able to work in the sibling directory in the
~/MEGA
directory or to work in the Web UI and have the changes reflected in the other two.
The entire point of doing all of this was so I could link sibling directories into the mounted sync directory and work in those directories - directly - and locally.
I looked into it a little and it looks like you can use rclone for that too but it may not be the best way to do it (not very performant / drags the system)? I could be wrong but unison
SEEMED like it might be real simple to use.
- Use
unison
for Bidirectional Sync? - Use
rclone
with Cron Jobs or Systemd Timers? - Use
lsyncd
for Real-Time Sync?
Then again lsyncd is lookin’ kinda sweet too. I think with this one you would sync local directories to the remote and then because the remote is mounted locally that would make that connection? But isn’t that what rclone does?
Can anyone offer some guidance?