@$out ${cwd}/tmp/log.out
label barcodes storage=LTO3 slots=46-59 drive=0 pool=Scratch
yes
+sql
+update Media SET FirstWritten='2006-01-01 01:00:00', LastWritten='2006-01-01 01:00:00';
+
update volume=vol47 pool=Test inchanger=no RecyclePool=Test
update volume=vol59 pool=Test enabled=no
update volume=vol58 pool=Test volstatus=Recycle
update volume=vol46 pool=Test
update volume=vol54 volstatus=Recycle
purge volume=vol53
-update volume=vol52 MaxVolJobs=1
+update volume=vol52 MaxVolJobs=1 volretention=15
update volume=vol51 inchanger=no volstatus=Recycle
purge volume=vol50
update volume=vol50 inchanger=no
update volume AllFromPool=Test
sql
update Media SET VolJobs=1 WHERE VolumeName='vol52';
-update Media SET LastWritten='2006-01-01 01:00:00';
update Media SET LastWritten='2006-01-01 01:00:01' WHERE VolumeName='vol57';
update Media SET LastWritten='2006-01-01 01:00:02' WHERE VolumeName='vol53';
label volume=file9 storage=File pool=Scratch
label volume=file10 storage=File pool=Scratch
label volume=file11 storage=File pool=Test
+sql
+update Media SET FirstWritten='2006-01-01 01:00:00', LastWritten='2006-01-01 01:00:00';
+
update volume=file2 enabled=no
update volume=file3 volstatus=Recycle
@# volstatus=Purged
purge volume=file11
sql
update Media SET VolJobs=1 WHERE VolumeName='file9';
-update Media SET LastWritten='2006-01-01 01:00:00';
update Media SET LastWritten='2006-01-01 01:00:01' WHERE VolumeName='file4';
update Media SET LastWritten='2006-01-01 01:00:02' WHERE VolumeName='file7';
update volume=vol49 pool=Test VolStatus=Used VolRetention=10s inchanger=no RecyclePool=Test
update volume=vol50 pool=Test VolStatus=Used VolRetention=10s inchanger=yes RecyclePool=Test
sql
-update Media SET LastWritten='2005-01-01 01:00:00' WHERE VolumeName IN ('vol47', 'vol48', 'vol49');
+update Media SET FirstWritten='2005-01-01 01:00:00', LastWritten='2005-01-01 01:00:00'
+WHERE VolumeName IN ('vol47', 'vol48', 'vol49');
list volume
run level=full pool=Test NightlySave yes