Резервная копия fstab в Dropbox

По соображениям безопасности я хочу сохранить копию ~ / etc / fstab в Dropbox.

В терминале я выполнил следующую команду:

sudo cp /etc/fstab ~/Dropbox/fstab.bak -p

Это скопировало файл в локальную папку, которая синхронизируется с Dropbox.

Однако значок файла в Dropbox показывает, что он заблокирован и отмечен знаком X

enter image description here

, и файл не отображается в списке файлов на веб-сайте Dropbox для моей учетной записи.

Однако я могу открыть файл с помощью emacs в локальной папке Dropbox.

Действительно ли этот файл был загружен в облако, и если нет, как я могу этого добиться?

0
задан 1 August 2020 в 19:08

1 ответ

Apparently, Dropbox does only upload files that are owned by you, even if the file is readable by all users. To make sure the file makes it to Dropbox, ensure it is owned by yourself.

It suffices to issue your copy command without sudo, i.e.

cp /etc/fstab ~/Dropbox/fstab.bak -p

A copy of a file to which you have read access, is owned by the one making the copy.

You could change the ownership of your existing file with the command

sudo chown $USER:$USER ~/Dropbox/fstab.bak

Immediately after executing the command, Dropbox will refresh and this time transfer it to the cloud.

2
ответ дан 2 August 2020 в 21:59

Другие вопросы по тегам:

Похожие вопросы: