Difference between revisions of "Network backup"
Jump to navigation
Jump to search
| Line 20: | Line 20: | ||
find ./ -type f -exec chmod 640 {} \; | find ./ -type f -exec chmod 640 {} \; | ||
find ./ -type d -exec chmod 750 {} \; | find ./ -type d -exec chmod 750 {} \; | ||
| + | |||
| + | [[Category:Tech support]] | ||
Revision as of 13:37, 29 September 2010
To backup a persons home folder(s) over the network using scp
scp -r /home/ tsbackup@192.168.2.143:/var/tsbackup/[date - persons name]
replace [date - persons name] with the appropriate information
To restore do the opposite (as root)
scp -r tsbackup@192.168.2.143:/var/tsbackup/[date-name] /home/
If you have reinstalled and the user had accounts other then oem you will still need to recreate those user accounts:
adduser [username]
You might also need to apply proper permissions
find /home/username/ -type f -exec chgrp -r username {} \;
find /home/username/ -type f -exec chown -r username {} \;
find /home/username/ -type f -exec chmod 644 {} \;
find /home/username/ -type d -exec chmod 754 {} \;
or for move private users
find /home/username/ -type f -exec chgrp -r username {} \;
find /home/username/ -type f -exec chown -r username {} \;
find ./ -type f -exec chmod 640 {} \;
find ./ -type d -exec chmod 750 {} \;