meganz / MEGAcmd

Command Line Interactive and Scriptable Application to access MEGA
Other
1.92k stars 406 forks source link

Sync Nas Synology with my account Mega #354

Open Usag78 opened 4 years ago

Usag78 commented 4 years ago

Hello,

I have an account PRO with your cloud service Mega, that I renew every month. So, I own a Nas Synology DS718+ (2 bay), which includes many files, for a size of 7 TB, and in fact I have subscribed the Pro account. I know there’s an application (Megacmd) to dowload and install in the Nas, in order to make communicate the Nas itself with my account Mega, using command line; well, I did it. At the same time, I installed on my pc Windows 10 Pro the relating interface to enter in my Nas, which is Putty; it works, and I am inside my Nas account, as root. At this point, I should move or copy (sync) the files present in the Nas to my account Mega, but I don’t know how to write the destination folder, because I don’t know the exact path, in fact, the command fails and the server shows me that the directory path does not exist. So I am paying for a huge space that I can’t use, because of this; I am here asking you kindly to give me, if possible, the right path (or the right complete command) to write with Putty, in order to trasfer the files present on the Nas (7 TB) to my account Mega.

Thank you so much for your hoped help.

Kind Regards

Jared

mattw-mega commented 4 years ago

Hi, the command you want is put, here is the help for that one:

Usage: put  [-c] [-q] [--ignore-quota-warn] localfile [localfile2 localfile3 ...] [dstremotepath]
Uploads files/folders to a remote folder

Options:
 -c     Creates remote folder destination in case of not existing.
 -q     queue upload: execute in the background. Don't wait for it to end'
 --ignore-quota-warn    ignore quota surpassing warning.
                          The upload will be attempted anyway.

So I would recommend the command (when you are already in mega-cmd): put -c / So there it is using / as the dstremotefolder, which is the path of the root folder of your cloud drive. thanks

Usag78 commented 4 years ago

I did this, as you told me, but it seems not to work, this is the response:

[Initiating server in background. Log: /var/services/homes/Riccardo Sieni/.megaCmd/megacmdserver.log]
Another instance of MEGAcmd Server is running. Execute with --skip-lock-check to force running (NOT RECOMMENDED)
Unable to connect to service: error=2
Please ensure mega-cmd-server is running.

I applied the suggested command above too, but it's always the same. I tried to work either with login and without login, but nothing changes. I don't know how to go ahead.

mattw-mega commented 4 years ago

That shouldn't happen of course - you may need to kill any running instance of mega-cmd-server, and remove any lock file in your home folder's .megaCmd folder, to get around that issue.