Archive for the tag 'backup'

Plesk error: “gzip: stdout: Broken pipe” when attempting to backup domains

Reason: Backup utility failed to write data to disk for some reasons.

Check permissions on backup folder and it’s sub folders. Right permissions are:

grep DUMP_D /etc/psa/psa.conf | awk ‘{print “ls -ld “$2}’ | sh
drwxr-x— 7 psaadm psaadm /var/lib/psa/dumps

Make sure that is is enough free disk space on dump partition.

Reference: http://kb.parallels.com/en/

How to find primary and backup Superblock

dumpe2fs prints the super block and blocks group information for the filesystem present on device.

#dumpe2fs /dev/hda4 | grep -i superblock
dumpe2fs 1.39 (29-May-2006)
Primary superblock at 0, Group descriptors at 1-1
Backup superblock at 32768, Group descriptors at 32769-32769
Backup superblock at 98304, Group descriptors at 98305-98305
Backup superblock at 163840, Group descriptors at 163841-163841
Backup superblock at 229376, Group descriptors at 229377-229377
Backup superblock at 294912, Group descriptors at 294913-294913
Backup superblock at 819200, Group descriptors at 819201-819201
Backup superblock at 884736, Group descriptors at 884737-884737
Backup superblock at 1605632, Group descriptors at 1605633-1605633

Now you can use the command below to repair the file system.

e2fsck - check a Linux ext2/ext3 file system

We can set up an automatic rsync and place the files into daily folders. For this to work we need to setup automatic ssh login first and then use cron to run your bash script.

The base of the automatic rsync is a very simple bash script.

#!/bin/bash
dest=/backup/buddy/`date +%A`
mkdir -p $dest
rsync -e ’ssh -p 2222′ -avl –delete –stats –progress root@192.168.1.1:/home/buddy $dest/

Using Cron to run the above script every day.

# run rsync at 23.00hrs every day
00 23 * * * sh /home/backup/bin/backup

How can I backup a currently installed RPM

–repackage Re-package the files before erasing.

The previously installed package will be named according to the macro %_repackage_name_fmt and will be created in the directory named by the macro %_repackage_dir (default value is /var/spool/repackage).

–replacefiles

Install the packages even if they replace files from other, already installed, packages.

–replacepkgs

Install the packages even if some of them are already installed on this system.

Once the package has been downloaded, install it with the –repackage option.

This will create an RPM from the existing package and install the new one.

rpm -Fvh –repackage rpm-file-name.rpm

Scheduled backup fails on Ensim Pro X for Linux

Once you edit the scheduled backup on Ensim Pro X for Linux v10.0.0, scheduled backup fails to function. Primary reason logged is ftp login failure. To fix this problem download the script and execute on the server.

Download :

http://download.swsoft.com/ensim/download/pro/linux/kb/2332/fix_schback_KB2332.pl

wget http://download.swsoft.com/ensim/download/pro/linux/kb/2332/fix_schback_KB2332.pl

# perl fix_schback_KB2332.pl

Reference : http://parallels.com

« Prev - Next »