The actions which move recordings can now take an absolute path as well as a relative one. This makes it possible to automatically archive recordings off to an external disk through sweeper rules. sceptic - this should make your automatic NAS archiving possible
Thanks.Use sweeper.
I can't get my head round that one either. BH has posted about it on another thread suggesting clarification. As everything is 'on the disk' what's the difference?What's the difference between Encrypted and Encrypted on-Disk?
Try:I've set the destination folder as _Decrypted/%folder and I get:
/media/My Video/_Decrypted/media/My Video/folder name/filename.
Is there anyway to strip off /media/My Video and just have:
/media/My Video/_Decrypted/folder name/filename ?
%regsub?%folder?^/media/My Video?_Decrypted?
What's the difference between Encrypted and Encrypted on-Disk?
Thus, using the existing naming rather than the possible future updates:In the flagged as options, there are "Encrypted" and "Encrypted On Disk". Those of us who have been around from the start know what these mean, but it is rather obtuse. How about substituting "Protected (Enc)" and "Decrypted (Dec)" respectively? (Decrypted would be the inverse of "Encrypted On Disk", and require negation of the trigger condition.)
Try:
Code:%regsub?%folder?^/media/My Video?_Decrypted?
Great - that looks like the right approach. Interesting that you need absolute paths though.I've solved this problem by using two rules.
27/05/2017 14:56 - ==== folder /media/My Video/Silent Witness ====
27/05/2017 14:56 -
27/05/2017 14:56 - --- Considering /media/My Video/Silent Witness/Silent Witness_20170526_2201.ts
27/05/2017 14:56 - Processing [!flag ODEncrypted age {< 36} action {copycreate {/media/My Video/_Decrypted/%bfolder}}]
27/05/2017 14:56 - !flag(ODEncrypted)
27/05/2017 14:56 - MATCH
27/05/2017 14:56 - age(< 36)
27/05/2017 14:56 - ... Recording age: 14
27/05/2017 14:56 - MATCH
27/05/2017 14:56 - action(copycreate {/media/My Video/_Decrypted/%bfolder})
27/05/2017 14:56 - ACTION: copycreate(/media/My Video/_Decrypted/%bfolder) [1]
27/05/2017 14:56 - Expanded [/media/My Video/_Decrypted/%bfolder] -> [/media/My Video/_Decrypted/Silent Witness]
27/05/2017 14:56 - Applying action to recordings in /media/My Video/Silent Witness
27/05/2017 14:56 - + folder_apply processing /media/My Video/Silent Witness/Silent Witness_20170124_2100.ts
27/05/2017 14:56 - Expanded [/media/My Video/_Decrypted/%bfolder] -> [/media/My Video/_Decrypted/Silent Witness]
27/05/2017 14:56 - copy /media/My Video/Silent Witness/Silent Witness_20170124_2100.ts to /media/My Video/_Decrypted/%bfolder
27/05/2017 14:56 - + folder_apply processing /media/My Video/Silent Witness/Silent Witness_20170517_2200.ts
27/05/2017 14:56 - Expanded [/media/My Video/_Decrypted/%bfolder] -> [/media/My Video/_Decrypted/Silent Witness]
27/05/2017 14:56 - copy /media/My Video/Silent Witness/Silent Witness_20170517_2200.ts to /media/My Video/_Decrypted/%bfolder
27/05/2017 14:56 - + folder_apply processing /media/My Video/Silent Witness/Silent Witness_20170522_2201.ts
27/05/2017 14:56 - Expanded [/media/My Video/_Decrypted/%bfolder] -> [/media/My Video/_Decrypted/Silent Witness]
27/05/2017 14:56 - copy /media/My Video/Silent Witness/Silent Witness_20170522_2201.ts to /media/My Video/_Decrypted/%bfolder
27/05/2017 14:56 - + folder_apply processing /media/My Video/Silent Witness/Silent Witness_20170519_2201.ts
27/05/2017 14:56 - Expanded [/media/My Video/_Decrypted/%bfolder] -> [/media/My Video/_Decrypted/Silent Witness]
27/05/2017 14:56 - copy /media/My Video/Silent Witness/Silent Witness_20170519_2201.ts to /media/My Video/_Decrypted/%bfolder
27/05/2017 14:56 - + folder_apply processing /media/My Video/Silent Witness/Silent Witness_20170116_2101.ts
27/05/2017 14:56 - Expanded [/media/My Video/_Decrypted/%bfolder] -> [/media/My Video/_Decrypted/Silent Witness]
27/05/2017 14:56 - copy /media/My Video/Silent Witness/Silent Witness_20170116_2101.ts to /media/My Video/_Decrypted/%bfolder
27/05/2017 14:56 - + folder_apply processing /media/My Video/Silent Witness/Silent Witness_20170523_2159.ts
27/05/2017 14:56 - Expanded [/media/My Video/_Decrypted/%bfolder] -> [/media/My Video/_Decrypted/Silent Witness]
27/05/2017 14:56 - copy /media/My Video/Silent Witness/Silent Witness_20170523_2159.ts to /media/My Video/_Decrypted/%bfolder
27/05/2017 14:56 - + folder_apply processing /media/My Video/Silent Witness/Silent Witness_20170516_2159.ts
27/05/2017 14:56 - Expanded [/media/My Video/_Decrypted/%bfolder] -> [/media/My Video/_Decrypted/Silent Witness]
27/05/2017 14:56 - copy /media/My Video/Silent Witness/Silent Witness_20170516_2159.ts to /media/My Video/_Decrypted/%bfolder
27/05/2017 14:56 - + folder_apply processing /media/My Video/Silent Witness/Silent Witness_20170518_2202.ts
27/05/2017 14:56 - Expanded [/media/My Video/_Decrypted/%bfolder] -> [/media/My Video/_Decrypted/Silent Witness]
27/05/2017 14:56 - copy /media/My Video/Silent Witness/Silent Witness_20170518_2202.ts to /media/My Video/_Decrypted/%bfolder
27/05/2017 14:56 - + folder_apply processing /media/My Video/Silent Witness/Silent Witness_20170123_2102.ts
27/05/2017 14:56 - Expanded [/media/My Video/_Decrypted/%bfolder] -> [/media/My Video/_Decrypted/Silent Witness]
27/05/2017 14:56 - copy /media/My Video/Silent Witness/Silent Witness_20170123_2102.ts to /media/My Video/_Decrypted/%bfolder
27/05/2017 14:56 - + folder_apply processing /media/My Video/Silent Witness/Silent Witness_20170526_2201.ts
27/05/2017 14:56 - Expanded [/media/My Video/_Decrypted/%bfolder] -> [/media/My Video/_Decrypted/Silent Witness]
27/05/2017 14:56 - copy /media/My Video/Silent Witness/Silent Witness_20170526_2201.ts to /media/My Video/_Decrypted/%bfolder
27/05/2017 14:56 - + folder_apply processing /media/My Video/Silent Witness/Silent Witness_20170524_2200.ts
27/05/2017 14:56 - Expanded [/media/My Video/_Decrypted/%bfolder] -> [/media/My Video/_Decrypted/Silent Witness]
27/05/2017 14:56 - copy /media/My Video/Silent Witness/Silent Witness_20170524_2200.ts to /media/My Video/_Decrypted/%bfolder
27/05/2017 14:56 - + folder_apply processing /media/My Video/Silent Witness/Silent Witness_20170130_2100.ts
27/05/2017 14:56 - Expanded [/media/My Video/_Decrypted/%bfolder] -> [/media/My Video/_Decrypted/Silent Witness]
27/05/2017 14:56 - copy /media/My Video/Silent Witness/Silent Witness_20170130_2100.ts to /media/My Video/_Decrypted/%bfolder
27/05/2017 14:56 - + folder_apply processing /media/My Video/Silent Witness/Silent Witness_20170131_2100.ts
27/05/2017 14:56 - Expanded [/media/My Video/_Decrypted/%bfolder] -> [/media/My Video/_Decrypted/Silent Witness]
27/05/2017 14:56 - copy /media/My Video/Silent Witness/Silent Witness_20170131_2100.ts to /media/My Video/_Decrypted/%bfolder
27/05/2017 14:56 - + folder_apply processing /media/My Video/Silent Witness/Silent Witness_20170118_2101.ts
27/05/2017 14:56 - Expanded [/media/My Video/_Decrypted/%bfolder] -> [/media/My Video/_Decrypted/Silent Witness]
27/05/2017 14:56 - copy /media/My Video/Silent Witness/Silent Witness_20170118_2101.ts to /media/My Video/_Decrypted/%bfolder
27/05/2017 14:56 - + folder_apply processing /media/My Video/Silent Witness/Silent Witness_20170525_2202.ts
27/05/2017 14:56 - Expanded [/media/My Video/_Decrypted/%bfolder] -> [/media/My Video/_Decrypted/Silent Witness]
27/05/2017 14:56 - copy /media/My Video/Silent Witness/Silent Witness_20170525_2202.ts to /media/My Video/_Decrypted/%bfolder
Close
27/05/2017 16:05 - + Sweeper processing /media/My Video/Silent Witness/Silent Witness_20170123_2102.ts
27/05/2017 16:05 - Processing [!flag ODEncrypted age {< 18} action {copycreate {/media/My Video/_Decrypted/%bfolder}}]
27/05/2017 16:05 - !flag(ODEncrypted)
27/05/2017 16:05 - MATCH
27/05/2017 16:05 - age(< 18)
27/05/2017 16:05 - ... Recording age: 2969
27/05/2017 16:05 - Nomatch
27/05/2017 16:05 - + Sweeper processing /media/My Video/Silent Witness/Silent Witness_20170526_2201.ts
27/05/2017 16:05 - Processing [!flag ODEncrypted age {< 18} action {copycreate {/media/My Video/_Decrypted/%bfolder}}]
27/05/2017 16:05 - !flag(ODEncrypted)
27/05/2017 16:05 - MATCH
27/05/2017 16:05 - age(< 18)
27/05/2017 16:05 - ... Recording age: 15
27/05/2017 16:05 - MATCH
27/05/2017 16:05 - action(copycreate {/media/My Video/_Decrypted/%bfolder})
27/05/2017 16:05 - ACTION: copycreate(/media/My Video/_Decrypted/%bfolder) [0]
27/05/2017 16:05 - Expanded [/media/My Video/_Decrypted/%bfolder] -> [/media/My Video/_Decrypted/Silent Witness]
27/05/2017 16:05 - copy /media/My Video/Silent Witness/Silent Witness_20170526_2201.ts to /media/My Video/_Decrypted/%bfolder
27/05/2017 16:05 - + Sweeper processing /media/My Video/Silent Witness/Silent Witness_20170524_2200.ts
27/05/2017 16:05 - Processing [!flag ODEncrypted age {< 18} action {copycreate {/media/My Video/_Decrypted/%bfolder}}]
27/05/2017 16:05 - !flag(ODEncrypted)
27/05/2017 16:05 - MATCH
27/05/2017 16:05 - age(< 18)
27/05/2017 16:05 - ... Recording age: 63
27/05/2017 16:05 - Nomatch
Yes and has one "For each recording and recordings within folders (1 level deep)" (recurse 1 if usng the file editor)Does Sweeper require a "Process Files within Folders" rule type?
Yes and has one "For each recording and recordings within folders (1 level deep)" (recurse 1 if usng the file editor)
I've updated sweeper again and that should fix the inconsistency with the %bfolder tokenaf123 then produced an update incorporating %bfolder token. This correctly placed folders in /media/My Video/_Decrypted but recordings from media root are placed in /media/My Video/_Decrypted/mnt/hd2/My Video.
That's expected for a folder rule. It just finds a candidate recording in the folder and runs the criteria against that to see if the action should be taken against the entire folder. It's confusing and is why the newer recursive rules were introduced. Now that %bfolder is fixed you should be able to revert to a single rule again.There was only one recording in a folder that matched the rule but all the recordings in the folder were copied to the destination folder.