I use my raspberry to backup some servers through remote filesystems (ftp and sftp) and rsync.
I wrote a php script executed at command line; the script is launced nigthly from crontab. The script sync some remote folders to local folders, than the local folders are zipped and the zip is saved on a pen drive automounted in /media/backup
I've format the pen drive as ext4 and the volume name is "backup".
Everything works fine and I find all daily backup in /media/backup as "YYYYMMDD_hhmmss.zip".
My trouble is: When rasbperry is off, I remove the usb pen drive and I mount it into another linux box, but I can't see the files.
When the USB pen drive is in raspberry, if I connect to it from another pc with Filezilla through sftp, I can see all files and dowload them and the downloaded files are correct and contain all my backuped remote folder.
Another strange thing is: my raspberry has a 64 GByte SD; of these 64 GByte, 34% result occupied as the zip files are phisical saved on SD, but seem saved into USB pen drive.
I think there's some trouble about the cache of usb pen drive, or something similar else.
Can anyone help me?
Thanks in advance