[Ubuntu] [gdrive] Jak synchronizować wybrany katalog z dyskiem google?

Zainstalowałem gdrive.

Mam listę komend jak poniżej.

gdrive [global] list [options] List files
gdrive [global] download [options] Download file or directory
gdrive [global] download query [options] Download all files and directories matching query
gdrive [global] upload [options] Upload file or directory
gdrive [global] upload - [options] Upload file from stdin
gdrive [global] update [options] Update file, this creates a new revision of the file
gdrive [global] info [options] Show file info
gdrive [global] mkdir [options] Create directory
gdrive [global] share [options] Share file or directory
gdrive [global] share list List files permissions
gdrive [global] share revoke Revoke permission
gdrive [global] delete [options] Delete file or directory
gdrive [global] sync list [options] List all syncable directories on drive
gdrive [global] sync content [options] List content of syncable directory
gdrive [global] sync download [options] Sync drive directory to local directory
gdrive [global] sync upload [options] Sync local directory to drive
gdrive [global] changes [options] List file changes
gdrive [global] revision list [options] List file revisions
gdrive [global] revision download [options] Download revision
gdrive [global] revision delete Delete file revision
gdrive [global] import [options] Upload and convert file to a google document, see ‘about import’ for available conversions
gdrive [global] export [options] Export a google document
gdrive [global] about [options] Google drive metadata, quota usage
gdrive [global] about import Show supported import formats
gdrive [global] about export Show supported export formats
gdrive version Print application version
gdrive help Print help
gdrive help Print command help
gdrive help Print subcommand help

gdzie:

gdrive [global] list [options]
global:
-c, --config Application path, default: /Users//.gdrive
–refresh-token Oauth refresh token used to get access token (for advanced users)
–access-token Oauth access token, only recommended for short-lived requests because of short lifetime (for advanced users)
–service-account Oauth service account filename, used for server to server communication without user interaction (file is relative to config dir)
options:
-m, --max Max files to list, default: 30
-q, --query Default query: “trashed = false and ‘me’ in owners”. See https://developers.google.com/drive/search-parameters
–order Sort order. See https://godoc.org/google.golang.org/api/drive/v3#FilesListCall.OrderBy
–name-width Width of name column, default: 40, minimum: 9, use 0 for full width
–absolute Show absolute path to file (will only show path from first parent)
–no-header Dont print the header
–bytes Size in bytes

Jak wywołać komendę, która będzie synchronizować wybrany katalog z dyskiem google?

Ubuntu jest teraz na GNOME, więc w ustawieniach powinieneś mieć możliwość dodania konta Google bez instalowania żadnych dodatkowych programów i tam ustawiasz synchronizacje plików z dyskiem.
Chyba że szczególnie zależy ci na obsłudze przez terminal to wpisz “man gdrive” i czytaj :wink:

Zależy mi na użyciu terminala gdyż VPS na którym jest zainstalowany Ubuntu jest raczej skromny (1GB Ram, 1 Core).

@anon741072 rzecz w tym, że help jest jak dla mnie niejasny. Rezczywiście mogę w terminalu wydać polecenie:

gdrive help

wówczas otrzymam:

gdrive [global] list [options] List files
gdrive [global] download [options] Download file or directory
gdrive [global] download query [options] Download all files and directories matching query
gdrive [global] upload [options] Upload file or directory
gdrive [global] upload - [options] Upload file from stdin
gdrive [global] update [options] Update file, this creates a new revision of the file
gdrive [global] info [options] Show file info
gdrive [global] mkdir [options] Create directory
gdrive [global] share [options] Share file or directory
gdrive [global] share list List files permissions
gdrive [global] share revoke Revoke permission
gdrive [global] delete [options] Delete file or directory
gdrive [global] sync list [options] List all syncable directories on drive
gdrive [global] sync content [options] List content of syncable directory
gdrive [global] sync download [options] Sync drive directory to local directory
gdrive [global] sync upload [options] Sync local directory to drive
gdrive [global] changes [options] List file changes
gdrive [global] revision list [options] List file revisions
gdrive [global] revision download [options] Download revision
gdrive [global] revision delete Delete file revision
gdrive [global] import [options] Upload and convert file to a google document, see ‘about import’ for available conversions
gdrive [global] export [options] Export a google document
gdrive [global] about [options] Google drive metadata, quota usage
gdrive [global] about import Show supported import formats
gdrive [global] about export Show supported export formats
gdrive version Print application version
gdrive help Print help
gdrive help Print command help
gdrive help Print subcommand help

Na podstawie powyższego umiem jedynie korzystać z gdrive upload :slight_smile:

Przemawiają do mnie przykłady a tych jak na lekarswo. Będę wdzięczny za dalsze propozycje :slight_smile: