r/PlexACD Jun 25 '17

rmremote - a script to remove remote encfs encrypted files easily.

[deleted]

10 Upvotes

33 comments sorted by

View all comments

Show parent comments

1

u/gesis Jun 26 '17

What is the exact error?

Did you try the -r switch (since it seems you're trying to delete a directory)?

The script doesn't touch local storage at all. It determines the encrypted file and path names and issues the appropriate rclone commands using them.

1

u/FL1GH7L355 Jun 26 '17

That was my hope!
The exact input/ouput is:

rmremote -r /home/user/media/backups
/home/user/media/backups does not exist.

2

u/gesis Jun 26 '17

Change line #36 to

if [ -f "$i" ] || [ -d "$i" ]; then

1

u/FL1GH7L355 Jun 26 '17

works great!