-
-
Save asenchi/1292586 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from os import listdir, system | |
| ip = raw_input("Destination server IP: ") | |
| for dir in listdir('/var/cpanel/users'): | |
| system('/scripts/pkgacct --skiphomedir --nocompress %s /home cpmove' % dir) | |
| system('scp /home/cpmove-*.tar root@%s:/home/' % ip) | |
| system('rsync -avHle ssh /home/%s/ root@%s:/home/%s/ --progress' % (dir, ip, dir)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment