backup script
Here’s a [new] backup script:
#!/usr/bin/python
# -*- encoding: iso-8859-15 -*-
### under GPL
### (c) chaos – www.true-binary.com
#####################################
import os
import sys
import time
datum=time.strftime(‘%d-%m-%Y_%H-%M’)
def makemeclear():
os.system("clear")
makemeclear()
a=raw_input(‘type in the full path [example: /var/www/mysite/]: ‘)
b=raw_input(‘name of the backup-file: ‘)
####################
#make a tar.gz file:
####################
def makebackuptar(datum,a,b):
print ""
print "please stand by while creating the backup …"
print ""
os.system(‘tar -czvf ‘+b+‘_’+datum+‘.tar.gz ‘+a)
print ""
print "backup done whiteout any problems!"
print ""
sys.exit(0)
#################
#make a [...]