Difference between revisions of "Network backup"
Jump to navigation
Jump to search
(just starting) |
|||
Line 2: | Line 2: | ||
scp -r /home/ tsbackup@192.168.2.143:/var/tsbackup/[date - persons name] | scp -r /home/ tsbackup@192.168.2.143:/var/tsbackup/[date - persons name] | ||
replace [date - persons name] with the appropriate information | 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 {} \; |
Revision as of 13:21, 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 {} \;