Cron pattern to copy over a USB drive
-
@phildunlap I get same error in mango and the drive is formatted as ext4, is mounted and the mango user has wrights to write on the usb0 folder.
-
Hi guys, just gonna give a suggestion, cd into /media/usb0/
then do the chown againsudo chown mango:mango . -R
then enter the
ls -la
That should give us all info for that directory to start. Skywatcher, assuming you are using putty if you highlight the text, you can then paste into here with code tags.
You should be able to create a file just with
touch file
no sudo required -
Also ensure the mango user has at least read permissions to /media
-
@mattfox said in Cron pattern to copy over a USB drive:
total 24 drwxr-xr-x 3 mango mango 4096 Aug 29 14:54 . drwxr-xr-x 12 root root 4096 Aug 29 11:45 .. drwx------ 2 mango mango 16384 Aug 29 14:54 lost+found root@mangoES3324:/media/usb0$touch file root@mangoES3324:/media/usb0$la -ls total 16 0 -rw-r--r-- 1 root root 0 Aug 29 15:22 file 16 drwx------ 2 mango mango 16384 Aug 29 14:54 lost+found
-
You're logged in as root, you need to be the mango user if you want to test effectively, also please use those code tags, it makes a lot easier to read.
Edit: Thanks!
Ok dir permissions look good. Try doing the touch newfile as mango, if you can do that, there should be no issues with mango creating files. I'll check my server for you soon if wanted to compare configs.Fox
-
mango@mangoES3324:/media/usb0$ls file lost+found mango@mangoES3324:/media/usb0$touch newfile mango@mangoES3324:/media/usb0$ls file lost+found newfile mango@mangoES3324:/media/usb0$ls -la total 24 drwxr-xr-x 3 mango mango 4096 Aug 29 15:43 . drwxr-xr-x 12 root root 4096 Aug 29 11:45 .. -rw-r--r-- 1 root root 0 Aug 29 15:22 file drwx------ 2 mango mango 16384 Aug 29 14:54 lost+found -rw-r--r-- 1 mango mango 0 Aug 29 15:43 newfile
-
Perfect, try doing backups now with mango
-
ok, now worked, I can use that path and my back-up was saved there.
Also I have a question, this feature of writing directly the location of the USB drive into the Backup Directory works only in V3? In V2.8 is it working or not?
-
@sky_watcher said in Cron pattern to copy over a USB drive:
ok, now worked, I can use that path and my back-up was saved there.
Nicely Done!
@sky_watcher said in Cron pattern to copy over a USB drive:
lso I have a question, this feature of writing directly the location of the USB drive into the Backup Directory works only in V3? In V2.8 is it working or not?
It'll work in both instances as long as your directory permissions are set correctly. Under the hood mango V2 and V3 are still running java, V3 just has a new shiny interface.
-
ok, Thank you a lot!