LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Ideal Backup Slack 14.1 (https://www.linuxquestions.org/questions/slackware-14/ideal-backup-slack-14-1-a-4175498335/)

J.D. 03-16-2014 01:45 PM

Quote:

Originally Posted by ruario (Post 5135675)
Hmm ... perhaps I did not reload the thread between your initial reply and mine.



That is not a problem that I raised.



You need only a single byte corruption near the start of a compressed archive to ruin everything if you have no extra backups or other forms of redundancy.




OK, hope you manage to get it back.

Thanks I already got it back its just logged in my desktop so I didn't pay attention when replying.

rouvas 03-17-2014 05:37 AM

@Diantre: Correct. http://www.mikerubel.org/computers/rsync_snapshots/ has inspired me.

@jheengut: I like to enclose my scripts in pushd/popd to ensure that they start in a predictable directory and they return to the previous location when finished. Most of the times it is not strictly required, it's just a habbit of mine.

@moisespedro: rsync, does not compress files for storage, it does compress them during transfer.

urulab 03-17-2014 03:59 PM

incremental daily backup
 
I use this lines in cron.daily script:

/usr/bin/rsync --delete-excluded --backup --backup-dir=snapshots/$(date +%Y%m%d) -a /home

rouvas 03-18-2014 05:06 AM

Quote:

Originally Posted by urulab (Post 5136283)
I use this lines in cron.daily script:

/usr/bin/rsync --delete-excluded --backup --backup-dir=snapshots/$(date +%Y%m%d) -a /home

If it works for you, then it is fine, just don't call it "incremental" because it isn't.
It is a full backup.

urulab 03-18-2014 06:33 AM

Quote:

Originally Posted by rouvas (Post 5136620)
If it works for you, then it is fine, just don't call it "incremental" because it isn't.
It is a full backup.

A single full backup is a true copy of the latest amendment is created. The "snapshots" directory contains various files of past backups.

Please see du -sh on backup dir.

Regards --cesar

rouvas 03-19-2014 04:50 AM

Quote:

Originally Posted by urulab (Post 5136672)
A single full backup is a true copy of the latest amendment is created. The "snapshots" directory contains various files of past backups....

Let me state again, that if it works for you it is fine, but I still insist that you are not performing an incremental backup.

https://en.wikipedia.org/wiki/Incremental_backup
"...An incremental backup is one that provides a backup of files that have changed or are new since the last incremental backup;[1] it is one that backs up only the data that changed since the last backup — be it a full or incremental backup..."

The rsync command you have stated, does a full copy of the /home directory, it does not copy only changes files since the last backup. Hence, it is not an incremental backup, rather a full backup of the /home directory.

But, lets leave it at this. You are obviously happy with your backup scheme, so there is no point in this conversation.


All times are GMT -5. The time now is 08:38 AM.