New answers tagged

2 votes
Accepted

Can I safely delete .~lock... files for Libreoffice documents that I know are now closed?

Yes, that is completely safe. The only function of the ~lock file is to prevent two users on the same system (or even one user from two different systems) from modifying the same document at the same ...
Jos's user avatar
  • 29.1k
0 votes

rsync with --delete-before except if source empty

you can specify source path with a .. like this: rsync [opts] /mnt/source/.somedirectory/../ /mnt/target/backup/ you can pick any folder that already exists and you will never delete if source is not ...
1090d5cc21f4's user avatar
0 votes

Using rsync with sudo

The sudo -v option doesn't seem to be working for some reason, perhaps because it's SSH, or because you disabled timeouts. Let's avoid it: rsync -avz --stats --rsync-path="{ echo 4321; cat; } | ...
Daniel T's user avatar
  • 4,594

Top 50 recent answers are included