Skip to content

Current rclone sync setting is potentially disastrous  #2

@torwag

Description

@torwag

As far as I understood rclone, the two lines in file-tree
UPLOAD="cloud:reMarkable"
and
"${RCLONE}" sync ${VERBOSE:+--verbose} --config ${RCLONE_CONFIG} --delete-excluded "${TGTROOT}/" "${UPLOAD}/"
are in combination rather dangerous, due to the --delete-excluded, as it deletes all files on the remote folder, which are not part of the remarkable folder. If a user mis-configures the path in the first line, this could lead to large data loose.
E.g.
UPLOAD="cloud:/"
could/would potentially delete the entire cloud storage.
I notice this, when I used a already populated remarkable folder. All existing data were gone after the first call of file-tree -s

I might be wrong, but to scare to test this on / ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions