Cannot set backup on Linux server - Error occurs no info given
Closed this issue · 5 comments
MEGAcmd version
1.7.0
Operating System/Platform
Linux
Platform version. In the case of Linux, please enter the Linux distribution you are using.
OpenMediaVault
Steps
- Followed instructions on the GitHub page to set a backup
- Researched on google further how to backup using MEGAcmd to no avail.
- I followed the GitHub instructions again, working on formatting and even copied and pasted the example from the backup page directly into the console. That did not work either.
Expected behavior
Expected to have set a backup
Actual behavior
The program does not spit out an error except [err: 22:31:05] backup (localpath remotepath --period="PERIODSTRING" --num-backups=N | [-lhda] [TAG|localpath] [--period="PERIODSTRING"] [--num-backups=N]) [--time-format=FORMAT]
No further information is given. I believe this is a bug in the program.
What's the exact command you have used?
Try reversing the order on --period and --num-backups, or trying it again from bash (mega-backup) instead of from MEGAcmd shell.
We seem to have a parsing issue with these:
this fails:
backup /some/path/tobackup/ /backups/ --period="0 0 4 * * *" --num-backups=2
whereas this:
backup /some/path/tobackup/ /backups/ --num-backups=2 --period="0 0 4 * * *"
works
Thank you for your response. When I run the altered command, something happens. I was using the user guide as reference and that is where I got the command I was initially using from. However now I have seemed to run into a new issue. When I run the command and have confirmed that the backup is "active", There is no activity on the MEGA website indicating at an increase in size or space being used.
If I run the altered command with the "--period="0 0 4 * * *" does that mean the backup command will initiate at that following time or run an immediate initial backup?
Additionally, when I run the "backup -v" command sometimes I get a blank line and I have to exit the program or I get the status of the update(s). Currently I do not get output of the backup status.
You can see the history of backup executions with
backup -h
and the backups configuration with
backup -l
That one includes the scheduled time for the next one.
An initial backup is expected if none exists as expressed in backup --help
:
Notice: regardless of the period expression, the first time you establish a backup,
it will be created immediately
Alright, I have run the commands that you suggested with one backup stating "ongoing" and the other stating "active". However only images and photos are being backed up and with that not all the photos. There is no music or other file type being uploaded with MEGAcmd or via the bash console.
I don't know if it's the program or something I'm doing wrong.
Upon further investigation, it would appear the my files are backing up. It's just taking longer than expected. Thank you for your help with this problem.