Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There doesn't seem to be a way to do one-way syncing #119

Xavion opened this issue Nov 6, 2018 · 3 comments


None yet
3 participants
Copy link

commented Nov 6, 2018

I want to use MEGAcmd as a one-way backup solution (i.e. not two-way sync). I would use your "mega-backup" command but it requires a fixed schedule. I want to run my backups manually at sporadic intervals.

I have therefore been using "mega-put" instead. It's quite good but lacks a "-d" flag (to delete files on MEGA that no longer exist locally). Can you please add this feature or allow "mega-sync" to be one-way? I want to use MEGAcmd like 'rsync'.


This comment has been minimized.

Copy link

commented Nov 12, 2018

The idea of One-way sync has been on our radar for a while but yet unavailable. We will considering adding the "-d" possibility to put. That's an interesting idea. Thanks for the inputs.


This comment has been minimized.

Copy link

commented Dec 13, 2018

I´m working on a bash script that, when added to crontab, compress a folder and upload it to mega...

date = `date '+%y%m%d'`     //read the system date
mega-login mail pass
cd /home/user/Temp/     //work on a temp folder
tar -czf fileName$date.tar.gz /home/user/folder/     //compress the folder in a file with the date on his name
mega-put fileName$date.tar.gz folder     //upload the file to certain folder on mega
rm fileName$date.tar.gz     //delete the compressed file on the temp folder

Hope it is useful.


This comment has been minimized.

Copy link

commented Dec 13, 2018

It's a decent work-around, but a native "-d" flag would still be best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.