Current time: 12-26-2024, 05:17 PM Hello There, Guest! (LoginRegister)


Post Reply 
tar nach ftp
Author Message
MasterTH Offline
Member
***

Posts: 570
Joined: Feb 2009
Reputation: 4
Post: #2
RE: tar nach ftp
ich kann dir mein skript für rsync geben:

Code:
#!/bin/sh

echo "-Skript von Rudolf Kasper - SonOG-"
echo "----------------------------------"
echo "Backup started"

BACKUPDIR=/
TARGETDIR=/root/backup/
E1=/proc
E2=/tmp
E3=/lost+found
E4=/dev
E5=/bin
E6=/boot
E7=/cdrom
E8=/home
E9=/lib
E10=/sys
E11=/media
E12=/mnt
E13=/opt
E14=/root
E15=/sbin
E16=/selinux
E17=/srv
E18=/usr

BACKUPSERVER=

echo "Creating mysql-dump:  /var/www/ispcp/mysql_dump.sql.gz..."

PASSWD=
mysqldump -uroot -p$PASSWD --all-databases | gzip > /var/www/ispcp/mysql_dump.sql.gz

echo "...ready"

echo "Starting rsync to remote machine..."

rsync -avze ssh --rsync-path='/usr/bin/rsync' --stats --timeout=3600 --compress --exclude=$E1 --exclude=$E2 --exclude=$E3 --exclude=$E4 --exclude=$E5 --exclude=$E6 --exclude=$E7 --exclude=$E8 --exclude=$E9 --exclude=$E10 --exclude=$E11 --exclude=$E12 --exclude=$E13 --exclude=$E14 --exclude=$E15 --exclude=$E16 --exclude=$E17 --exclude=$E18 $BACKUPDIR -r root@$BACKUPSERVER:$TARGETDIR

echo "...ready"

echo "Backup finished."
echo "-----------------------------------"

Hier lasse ich alle notwendigen Daten transferieren die für einen ispcp umzug notwendig sind.
(This post was last modified: 07-09-2009 09:26 PM by MasterTH.)
07-09-2009 09:26 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
tar nach ftp - Diggo - 07-09-2009, 09:01 PM
RE: tar nach ftp - MasterTH - 07-09-2009 09:26 PM
RE: tar nach ftp - Diggo - 07-09-2009, 09:39 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)