Hello,
How can i download the backup files from
/home/user-data/backup/encrypted
with Filezilla
I get an permission denied?
drwxr-xr-x 2 user-data root 4096 Mar 1 03:00 encrypted
-rw------- 1 root root 2775 Feb 20 20:53 secret_key.txt
Hello,
How can i download the backup files from
/home/user-data/backup/encrypted
with Filezilla
I get an permission denied?
drwxr-xr-x 2 user-data root 4096 Mar 1 03:00 encrypted
-rw------- 1 root root 2775 Feb 20 20:53 secret_key.txt
That file is owned by the user ‘root’ and the group ‘root’, which means you’ll need superuser permissions to copy the file. An easier approach would to login via SSH as a user with sudo permission and type
$ sudo cat /home/user-data/backup/secret_key.txt
Then just copy & paste the contents from your terminal to a file on your local computer.
Oke tnx…
But how can i download the actual backup files in the encrypted folder?
How comfortable are you with using the command line? It would be easiest to push the files from your MIAB system rather than pull them down with filezilla. For example, do you intend on automating your backup retrieval? If you’re not doing that, are you going to manually retrieve files daily/weekly/monthly/whateverly?
To answer your question, if filezilla is your only option for transferring data off of the box, you’ll need to re-own the files to something your user controls. In my case, my user account is in the admin group, so I’ll login via SSH and then:
# sudo chown user-data.admin /home/user-data/backup/encrypted/*.gpg
# sudo chmod 640 /home/user-data/backup/encrypted/*.gpg
Now my user account can download the files directly via filezilla.
Note that you’ll have to do this every time MIAB generates new backup files.
I have some experience on the command line
Tnx for the explanation.
I was thinking to download them manual weekly or so. but automatic sounds better.
Do you have an another way to download them to a local PC? what do you mean by push? (to another server?)
Do you own another Linux server? If so, you can set up SSH keys and automate the process of copying off the backup files using scp & cron.
You could even set up SSH on Windows. If your desktop is running all the time, your server could run a cronjob as root to SCP the files to your home desktop.