How to keep latest n backup

Backup, Restore, Netbak Replicator, Cloud Storage Services
Post Reply
armitage318
Starting out
Posts: 10
Joined: Fri May 06, 2016 1:43 am

How to keep latest n backup

Post by armitage318 »

Hi,
I use QNAP for backup of several workstations with Netbak utility on Windows.
Generally I use, on client PC, the option that save one full backup every day, so I have:

Code: Select all

[/share/MD0_DATA/User1/NetBakData] # ls -l User1
drwxrwxrwx    3 COMPANY\ COMPANY\      4096 Oct 13 21:04 2019-10-13-22-00-00/
drwxrwxrwx    3 COMPANY\ COMPANY\      4096 Oct 14 21:04 2019-10-14-22-00-00/
drwxrwxrwx    3 COMPANY\ COMPANY\      4096 Oct 16 21:00 2019-10-16-22-00-00/

[/share/MD0_DATA/User2] # ls -l User2
drwxrwxrwx    3 COMPANY\ COMPANY\      4096 Oct 14 00:59 2019-10-14-02-00-00/
drwxrwxrwx    3 COMPANY\ COMPANY\      4096 Oct 15 00:59 2019-10-15-02-00-00/
drwxrwxrwx    3 COMPANY\ COMPANY\      4096 Oct 16 00:59 2019-10-16-02-00-00/
drwxrwxrwx    3 COMPANY\ COMPANY\      4096 Oct 17 10:16 2019-10-17-11-00-00/
Previously, I ran a shell script that delete folder "older than specific day", but I would like a different solution to "delete old backup, but keep almost 3 of them".
Any help ?

Thank you!
P3R
Guru
Posts: 13190
Joined: Sat Dec 29, 2007 1:39 am
Location: Stockholm, Sweden (UTC+01:00)

Re: How to keep latest n backup

Post by P3R »

I would use a better Windows backup application that have a versioning feature built in. It's usually available only in non-free backup software. Personally I would use Syncback SE or Pro based on the excellent experience I've had with Syncback Free ever since I gave up on NetBak many, many years ago.
RAID have never ever been a replacement for backups. Without backups on a different system (preferably placed at another site), you will eventually lose data!

A non-RAID configuration (including RAID 0, which isn't really RAID) with a backup on a separate media protects your data far better than any RAID-volume without backup.

All data storage consists of both the primary storage and the backups. It's your money and your data, spend the storage budget wisely or pay with your data!
Post Reply

Return to “Backup & Restore”