This is an old revision of the document!
# du -sh /var/*
# df -h
Change directories permission:
$ find /path/to/base/dir -type d -exec chmod 755 {} +
Change files permission:
$ find /path/to/base/dir -type f -exec chmod 644 {} +
Owner:
$ chown owner_name * -R
Group:
$ chgrp group_name * -R
Test the command with -n
$ rsync -nav –delete-after /source/ /destination/
Execute command : -a for archive (keep files structure + recursive…), -v for verbose, –delete-after to delete files in backup directory if they do not exist in source (moved, renamed, …)
$ rsync -av –delete-after /source/ /destination/