MEGAsync icon indicating copy to clipboard operation
MEGAsync copied to clipboard

Cannot sync mysql folder

Open alexmulo opened this issue 5 years ago • 1 comments

Dear all, I put my mysql folder on a USB pen (raspberry pi 4) and I wanted to sync it via mega-cmd using this command: sync /path/to/local/folder /folder/in/mega

Unfortunately, the folder is not synced and I probably suppose it has something to do with the folder permission. In this case the user is mysql:mysql . I cannot change it otherwise mysql would not work properly on my raspberry.

Do you have any idea how to solve this problem?

Many thanks

alexmulo avatar Jun 11 '21 22:06 alexmulo

Options: 1 - change mysql configuration to run as a different user 2 - run MEGAcmd as mysql user 3 - add the user that runs MEGAcmd to the mysql group (assuming your mysql files have r/w permissions for group). -> Caveat: MEGAcmd does not sync permission. it uses default ones for new files/folders. You can adjust this using permissions command (mega-permissions --help). By default, they are 600 and 700, which of course won't serve you if a file was created by MEGAcmd (note that MEGAcmd sync is 2 ways: up and down) as mysql wouldn't have permission to read those files <still, if no exterior change occurs in your MEGA files, only MYSQL should be creating files>.

polmr avatar Jun 15 '21 08:06 polmr