linux tar backup script 1c bases

ByDmitriy Altuhov

linux tar backup script 1c bases

#!/bin/sh

if [ $(ls /backup/*.backup | wc -l) -gt 10 ]
then
find /backup/*.backup -mtime +10 -delete 2>/dev/null > /dev/null
fi
backup_source=”/media/disk1c/1с/”
backup_dest=”/backup”
date=`date +%Y.%m.%d_%H_%M`
hostname=1cbases
filename=”$hostname-$date.backup”
echo “Backing Up your Linux System”
tar cvpzf   $backup_dest/$filename  $backup_source
echo “Backup finished”

About the author

Dmitriy Altuhov administrator