Camera NVR file backup

A CCTV monitoring and recording application
Post Reply
User avatar
sfsouter
Posts: 3
Joined: 13 Mar 2024, 11:06

Camera NVR file backup

Post by sfsouter »

One key application I am considering for TNAS purchase is backup of a surveillance camera server. This server has 27 cameras and the software creates 27 folders, one for each camera. It then has subfolders in each of those for each calendar day. The video files are stored as event files in each calendar day folder. The server uses four 4TB drives and I was hoping to create a backup of the data in those drives but wanted to keep more of the older event files that the server software would delete as it runs out of drive space. For example I might allocate double the storage on the NAS to retain twice as much of the historical files. Is a standard backup app like TerraSync capable of this configuration?

I believe what I am hoping to achieve is called a mirror backup without removal of deleted files in source. i.e. do not remove deleted files back backup destination. The backup with retain as many of these historical files until drive space runs out and then the oldest will be discarded.

Please let me know if this is possible and share any related instructions on setup.
User avatar
TMzethar
TerraMaster Team
Posts: 1223
Joined: 27 Oct 2020, 16:43

Re: Camera NVR file backup

Post by TMzethar »

Are you planning to backup from Windows to TNAS?
You can use TerraSync to achieve one-way upload (with the option to delete the source directory without synchronizing).
However, due to TerraSync's feature of backing up based on file versions, the actual required space may be double, so it may not meet your needs.
You can consider mapping TNAS's disk to your PC and using other backup/synchronization tools such as TPC Backupper to achieve incremental backup (incremental backup does not synchronize or backup the "delete operation" of the source directory).
To contact our team, please send email to following addresses, remember to replace (at) with @:
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
sfsouter
Posts: 3
Joined: 13 Mar 2024, 11:06

Re: Camera NVR file backup

Post by sfsouter »

to be more clear, I want to mirror everything on the source, but also not to delete on the TNAS until TNAS runs out of space.
User avatar
TMzethar
TerraMaster Team
Posts: 1223
Joined: 27 Oct 2020, 16:43

Re: Camera NVR file backup

Post by TMzethar »

Generally speaking, Mirror mode refers to changing the destination directory to be consistent with the source directory. When the source directory deletes files, the destination directory will also delete files. If you need to use backup software to achieve your goals, choose Incremental instead of Mirror.
Generally speaking, synchronization software tools have the same effect as Mirror.
To contact our team, please send email to following addresses, remember to replace (at) with @:
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
sfsouter
Posts: 3
Joined: 13 Mar 2024, 11:06

Re: Camera NVR file backup

Post by sfsouter »

After initial research of backup software options, I have found a solution with Backupper using their Basic Sync mode along with the option to NOT sync the deletions. Now I need to solve the challange to clean up destination drive space on the NAS once it gets close to full. Is there a software based app to accomplish this by deleting the oldest files automatically? If not I have read about folks writing custom scripts to auto-delete old files for space.

Any tips are appreciated.
User avatar
TMzethar
TerraMaster Team
Posts: 1223
Joined: 27 Oct 2020, 16:43

Re: Camera NVR file backup

Post by TMzethar »

There is currently no relevant software in TOS that can achieve this.
To contact our team, please send email to following addresses, remember to replace (at) with @:
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
Gremlin
Posts: 459
Joined: 02 Dec 2022, 22:31
Great Britain

Re: Camera NVR file backup

Post by Gremlin »

Finding and deleting files that are "more than" so many days old is relatively simple; as is deleting the resultant empty folders - I use 'find' commands in scheduled tasks.
Finding and deleting "the oldest" may not be as easy as you would have to determine the "oldest" files. This may be complicated if you are copying files from another source into the nas. This is because the "date" the file is put on the nas will not be the same as the date it was created originally. (Linux tends to use "modification" date and many linux systems don't understand "creation" dates.) Unless, of course, the file names contain some form of date structure in which case you can 'find' on the basis of the filenames.

[I use my nas as an ftp repository for ip camera images, rather than as backup for the dvr/nvr which handles the overall video.]

I have experienced the creation/modification date conundrum when backing up the ftp images to second nas. I use a third party backup programme that does allow more control over what is kept and what is deleted but it does mean having to use a desktop to run it.
F5-221 5.1.123, 8GB System Partition on 3 x 4TB Traid; 3TB EXT4
F2-221 TOS6 (Beta), 8GB System Partition on 2 x 6TB in Traid. (Latest Update 11/04/24)
Post Reply

Return to “Surveillance Manager”