Tiny Core Base > CorePlus

TC Exit Options

(1/2) > >>

LinxBe:
Hello,

When you shutdown TC, you have 3 Backup Options: None, Backup and Safe.

I understand Backup and None.
But what does "Safe" mean ?
Difference with "Backup" ? When use it ?

TIA.
LinxBe

nitram:
Regular  backup  just overwrites the existing /tce/mydata.tgz backup file. Choosing  safe backup  copies the existing mydata.tgz to mydatabk.tgz before overwriting mydata.tgz. Useful to have a backup copy in case of data corruption or restore previous settings. Generally the backup files are small so it's wise to perform a safe backup periodically. Open the Control Panel -> Backup/Restore and select Safe (backup) -> Go, you will see "Copying existing backup to */mydatabk.tgz".

nitram:
Regarding 'when to use it'. Just like any other system backup, before problems occur! When your system is running well and configured to your satisfaction perform a safe backup. This gives you more freedom to experiment, add and configure additional software, etc and still have a fallback restore point.

netnomad:
hi friends,

in this forum i found a very useful script for storing even more backups in a timeline:

put backdate.sh to the beginning of shutdown.sh

backdate.sh

--- Code: ---#!/bin/sh

# This saves a copy of backup or encrypted backup with the date and time.

USER=`cat /etc/sysconfig/tcuser`
HOME=`eval echo ~$USER`
PART=$(cat /etc/sysconfig/backup_device)
MYDAT=$(cat /etc/sysconfig/mydata)
DATE=$(date +"%Y.%m.%d-%H.%M.%S")
DATABACK=$MYDAT-$DATE.tgz
CRYPTBACK=$MYDAT-$DATE.tgz.bfe

cd /mnt/$PART
cp $MYDAT.tgz $DATABACK
cp $MYDAT.tgz.bfe $CRYPTBACK

# This deletes the oldest if there are more than the number you select (the default is 5).

NUMBACK=$(ls "$MYDAT"-2* | wc -l)
while [ $NUMBACK -gt 5 ]  # Change 5 to the number of backups you want to keep.
do
ls -1t $MYDAT-2*tg* | tail -1 | xargs /bin/rm -f
NUMBACK=$(ls "$MYDAT"-2* | wc -l)
done

--- End code ---

i really glad that i found this script in this forum, share it.

netnomad:
hi friends,

it´s even documentated in the wiki :-)

http://wiki.tinycorelinux.net/wiki:backup_date

enjoy it!

Navigation

[0] Message Index

[#] Next page

Go to full version