We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We should add an option to backup of existing permission and ownership for all users. Below is code snippet for your review.
backupdir="/root/fixperms_backups/fixperms_backups_'date +%s'" mkdir -p $backupdir function permsbkp { local user=$1 local home_dir=$2 echo "Backing up permissions for $user" find $home_dir -printf 'chmod %#m "%p"\n' > ${backupdir}/${user}-perms_backup_'date +%s'.sh echo "Backing up ownerships for $user" find $home_dir -printf 'chown %u:%g "%p"\n' > ${backupdir}/${user}-owners_backup_'date +%s'.sh }
The text was updated successfully, but these errors were encountered:
Add Perms/Owner Backup option (resolves PeachFlame#10)
006b485
-b option for perms/ownership backup to resolve PeachFlame#10
Successfully merging a pull request may close this issue.
We should add an option to backup of existing permission and ownership for all users.
Below is code snippet for your review.
The text was updated successfully, but these errors were encountered: