Current time: 12-23-2024, 11:59 AM Hello There, Guest! (LoginRegister)


Thread Closed 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ERLEDIGT]ispCP System Backup: HowTo
Author Message
menki Offline
Member
***

Posts: 643
Joined: May 2008
Reputation: 0
Post: #21
RE: ispCP System Backup: HowTo
erstelle doch einfach eine datei mit 1 mb grösse in dem ordner der gesichert werden muss und starte dann die sicherung. in der email muss dann drinnen stehen das sich der inhalt am backupserver um 1 mb geändert hat.

ich hab das bakcup von ispCP um ca. 00.15 beobachten können. deswegen laufen bei mir die duplicity backups ab ca. 03.15 uhr weg. Smile

ich mache ein monatliches full backup und alle 12 stunden ein inkrementelles.

nicht vergessen die conf bzw. gpgkeys zu sichern!

MENKI
10-27-2008 09:18 PM
Find all posts by this user
Kaimane Offline
Junior Member
*

Posts: 39
Joined: Oct 2007
Reputation: 0
Post: #22
RE: ispCP System Backup: HowTo
(10-27-2008 09:18 PM)menki Wrote:  [...] in der email muss dann drinnen stehen das sich der inhalt am backupserver um 1 mb geändert hat.

Aha. Es gibt auch eine Status-eMail? Wo wird sie hingeschickt? Muss man die Adresse in einer Konfigurationsdatei unterbringen?

(10-27-2008 09:18 PM)menki Wrote:  ich hab das bakcup von ispCP um ca. 00.15 beobachten können. deswegen laufen bei mir die duplicity backups ab ca. 03.15 uhr weg. Smile

Hab gerade mal nachgeschaut (hätte ich auch vorher drauf kommen können) wann die Backupfiles von ispCP angelegt werden. Punkt 00:00h ... Also ist der Cronjob um 2h schon in Ordnung.
10-27-2008 11:00 PM
Find all posts by this user
menki Offline
Member
***

Posts: 643
Joined: May 2008
Reputation: 0
Post: #23
RE: ispCP System Backup: HowTo
ob der backup job in ordnung ist hängt natürlich von der menge der zu sichernden webhostings. bei mir wäre 02:00 uhr zu früh. Smile

in meinem ersten post habe ich erklärt das eine statusmail an den user gesendet wird, und dass in /etc/aliasses etwas angepasst werden muss. Smile

grüße

MENKI
10-27-2008 11:15 PM
Find all posts by this user
Kaimane Offline
Junior Member
*

Posts: 39
Joined: Oct 2007
Reputation: 0
Post: #24
RE: ispCP System Backup: HowTo
(10-27-2008 11:15 PM)menki Wrote:  in meinem ersten post habe ich erklärt das eine statusmail an den user gesendet wird, und dass in /etc/aliasses etwas angepasst werden muss. Smile

Hey Menki!
Hab deinen ersten Post (und Andere in diesem Thread) aufmerksam gelesen (nicht zum ersten Mal Wink ). Leider konnte ich weder etwas von einer Statusmail noch von der /etc/aliasses lesen. Dies wird leider nicht in deinem HowTo behandelt.
Wäre toll, wenn du darauf noch mal eingehen würdest.

Vielen Dank schon mal!

EDIT

Bei mir sieht es nun so aus: /etc/aliases
Code:
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root

/root/.forward:
Code:
meine@emailadresse.de

Klappt wunderbar. Eine eMail an root@FQDN kam dann auch direkt in meinem Postfach an Wink
Also, vllt noch ein kleiner Absatz, den man so ins HowTo übernehmen könnte, für all die jenigen, die nicht wissen, wie es funzt Wink

Viele Grüße und vielen Dank Menki, für deine Geduld und Zeit!
(This post was last modified: 10-28-2008 12:39 AM by Kaimane.)
10-28-2008 12:11 AM
Find all posts by this user
menki Offline
Member
***

Posts: 643
Joined: May 2008
Reputation: 0
Post: #25
RE: ispCP System Backup: HowTo
duplicity sendet ausführliche backup beschreibung per email an den root user. bitte einfach in der datei /etc/aliases die umleitung bei dem root user auf deine mail einstellen.

root: deinemail@deinedomain.de

anschliessend das kommando:

# newaliases

in der konsole ausführen. und fertig! Smile

das howto werde ich auch dem entsprechend anpassen.

ps: und nicht so danken. Wink

grüße

MENKI
10-28-2008 12:48 AM
Find all posts by this user
Lintu Offline
Junior Member
*

Posts: 11
Joined: Mar 2008
Reputation: 0
Post: #26
RE: ispCP System Backup: HowTo
Hallo zusammen

Habe folgendes Problem auf meinem RootDS mit Debian etch

Code:
pascalsenn:~# ftplicity privat backup
Start ftplicity v1.4.0b1, time is 11/04/08 20:04:14.
Using profile '/root/.ftplicity/privat'.
Using installed duplicity version 0.5.02 (OK).

--- Start running command PRE (20:04:14.29) ---
Skipping n/a script '/root/.ftplicity/privat/pre'.
--- Finished (20:04:14.29) ---

--- Start running command BKP (20:04:14.30) ---
Running duplicity - FAILED (code 1)
Output: NcFTP version is 3.2.0
Reading globbing filelist /root/.ftplicity/privat/exclude
Last full backup date: none
No signatures found, switching to full backup.
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol1.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol1.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-ne53-u-3' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol1.difftar.gpg'' failed (attempt #1)
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol1.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol1.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-ne53-u-3' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol1.difftar.gpg'' failed (attempt #2)
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol1.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol1.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-ne53-u-3' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol1.difftar.gpg'' failed (attempt #3)
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol1.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol1.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-ne53-u-3' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol1.difftar.gpg'' failed (attempt #4)
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol1.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol1.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-ne53-u-3' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol1.difftar.gpg'' failed (attempt #5)
Giving up trying to execute 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-ne53-u-3' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol1.difftar.gpg'' after 5 attempts
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol2.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol2.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-iPAD7y-4' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol2.difftar.gpg'' failed (attempt #1)
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol2.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol2.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-iPAD7y-4' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol2.difftar.gpg'' failed (attempt #2)
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol2.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol2.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-iPAD7y-4' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol2.difftar.gpg'' failed (attempt #3)
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol2.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol2.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-iPAD7y-4' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol2.difftar.gpg'' failed (attempt #4)
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol2.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol2.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-iPAD7y-4' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol2.difftar.gpg'' failed (attempt #5)
Giving up trying to execute 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-iPAD7y-4' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol2.difftar.gpg'' after 5 attempts
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol3.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol3.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-pfq8LH-5' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol3.difftar.gpg'' failed (attempt #1)
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol3.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol3.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-pfq8LH-5' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol3.difftar.gpg'' failed (attempt #2)
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol3.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol3.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-pfq8LH-5' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol3.difftar.gpg'' failed (attempt #3)
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol3.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol3.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-pfq8LH-5' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol3.difftar.gpg'' failed (attempt #4)
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol3.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol3.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-pfq8LH-5' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol3.difftar.gpg'' failed (attempt #5)
Giving up trying to execute 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-pfq8LH-5' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol3.difftar.gpg'' after 5 attempts
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol4.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol4.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-RlNEzq-6' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol4.difftar.gpg'' failed (attempt #1)
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol4.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol4.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-RlNEzq-6' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol4.difftar.gpg'' failed (attempt #2)
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol4.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol4.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-RlNEzq-6' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol4.difftar.gpg'' failed (attempt #3)
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol4.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol4.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-RlNEzq-6' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol4.difftar.gpg'' failed (attempt #4)
ncftpput privat/duplicity-full.2008-11-04T20:04:14+01:00.vol4.difftar.gpg: server said: privat/duplicity-full.2008-11-04T20:04:14+01:00.vol4.difftar.gpg: Permission denied
Running 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-RlNEzq-6' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol4.difftar.gpg'' failed (attempt #5)
Giving up trying to execute 'ncftpput -f /tmp/duplicity-R5DEqc-tempdir/mkstemp-_1sAEQ-1 -F -t 30 -m -V -C '/tmp/duplicity-R5DEqc-tempdir/mktemp-RlNEzq-6' 'privat/duplicity-full.2008-11-04T20:04:14+01:00.vol4.difftar.gpg'' after 5 attempts
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 522, in ?
    with_tempdir(main)
  File "/usr/bin/duplicity", line 516, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 507, in main
    full_backup(col_stats)
  File "/usr/bin/duplicity", line 209, in full_backup
    bytes_written = write_multivol("full", tarblock_iter, globals.backend)
  File "/usr/bin/duplicity", line 131, in write_multivol
    globals.gpg_profile, globals.volsize)
  File "/usr/lib/python2.4/site-packages/duplicity/gpg.py", line 231, in GPGWriteFile
    data = block_iter.next(bytes_to_go).data
  File "/usr/lib/python2.4/site-packages/duplicity/diffdir.py", line 456, in next
    result = self.process(self.input_iter.next(), size)
  File "/usr/lib/python2.4/site-packages/duplicity/diffdir.py", line 542, in process
    data, last_block = self.get_data_block(fp, size - 512)
  File "/usr/lib/python2.4/site-packages/duplicity/diffdir.py", line 567, in get_data_block
    buf = fp.read(read_size)
  File "/usr/lib/python2.4/site-packages/duplicity/diffdir.py", line 381, in read
    buf = self.infile.read(length)
IOError: [Errno 3] No such process
--- Finished (20:14:28.26) ---

--- Start running command POST (20:14:28.27) ---
Skipping n/a script '/root/.ftplicity/privat/post'.
--- Finished (20:14:28.28) ---

Kann mir da jemand einen Tipp geben.
11-05-2008 05:19 AM
Find all posts by this user
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #27
RE: ispCP System Backup: HowTo
Code:
Skipping n/a script '/root/.ftplicity/privat/pre'.
Gibt es diese Script/Datei denn auch ?

Greez BeNe
11-05-2008 05:24 AM
Visit this user's website Find all posts by this user
Lintu Offline
Junior Member
*

Posts: 11
Joined: Mar 2008
Reputation: 0
Post: #28
RE: ispCP System Backup: HowTo
Habe ich jetzt hinzugefügt. Hat aber leider nichts genützt.
11-05-2008 06:09 AM
Find all posts by this user
menki Offline
Member
***

Posts: 643
Joined: May 2008
Reputation: 0
Post: #29
Wink RE: ispCP System Backup: HowTo
nein, nein....

/root/.ftplicity/privat/pre bzw. /root/.ftplicity/privat/exclude sind optionale script files die nicht unbedingt da sein müssen. ich vermute es ist ein conf problem, bzw. pfade passen nicht in der conf.

bitte poste mal die conf datei aus dem /privat verzeichniss, natürlich ohne passwörter.

ps: lösche sofort die vorher erstellte pre datei. diese kann eigentlich erstellt werden sollte aber nicht LEER SEIN. in die pre datei schreibt man befehle die vor der sicherung ausgeführt werden sollen. Smile

MENKI
(This post was last modified: 11-05-2008 05:59 PM by menki.)
11-05-2008 05:58 PM
Find all posts by this user
Lintu Offline
Junior Member
*

Posts: 11
Joined: Mar 2008
Reputation: 0
Post: #30
RE: ispCP System Backup: HowTo
Hier mal die conf Datei:

Code:
# gpg key data
GPG_KEY=code1
GPG_PW='code2'

# credentials & server address of the ftp server (URL-Format)
TARGET='ftp://user@serverip/verzeichnis/'
TARGET_PW='Das Passwort'

# base directory to backup
SOURCE='/'

# oldest time frame for restoration, see duplicity man page, chapter TIME_FORMATS)
MAX_AGE=1M

# Number of full backups to keep. Used for the "purge-full" command.
# See duplicity man page, action "remove-all-but-n-full".
MAX_FULL_BACKUPS=2

# verbosity of output (9 for bug fixing)
VERBOSITY=4

# temporary file space. at least the size of the biggest file in backup
# for a successful restoration process.
TEMP_DIR=/tmp

# sets duplicity --time-separator option (since v0.4.4.RC2) to allow users
# to change the time separator from ':' to another character that will work
# on their system.  HINT: For Windows SMB shares, use --time-separator='_'.
# NOTE: '-' is not valid as it conflicts with date separator.
#DUPL_PARAMS="$DUPL_PARAMS --time-separator _ "

# activates duplicity --short-filenames option, when uploading to a file
# system that can't have filenames longer than 30 characters (e.g. Mac OS 8)
# or have problems with ':' as part of the filename (e.g. Microsoft Windows)
#DUPL_PARAMS="$DUPL_PARAMS --short-filenames "

# activates duplicity --full-if-older-than option (since duplicity v0.4.4.RC3)
# forces a full backup if last full backup reaches a specified age, for the
# format of MAX_FULLBKP_AGE see duplicity man page, chapter TIME_FORMATS
#MAX_FULLBKP_AGE=1M
#DUPL_PARAMS="$DUPL_PARAMS --full-if-older-than $MAX_FULLBKP_AGE "

# sets duplicity --volsize option (available since v0.4.3.RC7)
# set the size of backup chunks to VOLSIZE MB instead of the default 5MB.
# VOLSIZE must be number of MB's to set the volume size to.
#VOLSIZE=50
#DUPL_PARAMS="$DUPL_PARAMS --volsize $VOLSIZE "

# more duplicity command line options can be added in the following way
# don't forget to leave a separating space char at the end
#DUPL_PARAMS="$DUPL_PARAMS --put_your_options_here "
11-06-2008 02:29 AM
Find all posts by this user
Thread Closed 


Forum Jump:


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