0

I'm running Debian 9.1 with KDE and used BackInTime (which uses rsync) to backup my files. Now I would like to create a changelog / diff of changes to permissions of files.

I'd like know this for two reasons: security and manually restoring permissions if there is no built-in way to do so. How can this be done?

muru
  • 69,900
  • 13
  • 192
  • 292
mYnDstrEAm
  • 4,008
  • 13
  • 49
  • 108

1 Answers1

2

you can use

rsync -ani source destination

if there will be file permission changes you will see output like

rsync -ani 1 new/
.f...p..... 1

the flags identify the changed parameter of the file

  1. f stands for file
  2. p stands for permission changes
Piyush Jain
  • 348
  • 1
  • 6