Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

House cleaning old backups

 
Post new topic   Reply to topic     Forum Index -> Support
Author Message
kenz



Joined: 29 May 2019
Posts: 3

PostPosted: Wed Feb 05, 2020 4:35 pm    Post subject: House cleaning old backups Reply with quote

I have a backup job running every night. It runs correctly creating a folder for the backup called MM/DD. I then have a custom VBS script run afterwards that is supposed to delete any of the backups that are older than 60 days. The problem is the delete fails and I get an error message "Path not found" even though it is there and the ID that is used to execute the profile has full control. Does anyone have any idea what might be causing this. Below is a portion of the log from a nightly backup.

2020-02-05 01:03:39 : -- Done: 21,142 (33.31GB) Err: 0 (0) Skipped: 0 (0) Tot: 21,142 (33.31GB) --
2020-02-05 01:03:39 : -- Average Transfer Rate: 160.31MB/Sec -- Elapsed Time: 3 min 32 sec
2020-02-05 01:03:39 : Re-comparing ...
2020-02-05 01:03:39 : Building index of display items: 0 sec 2 ms
2020-02-05 01:03:39 : ---- Copying finished ----
2020-02-05 01:03:40 : ---- End ----
2020-02-05 01:03:40 : - Execution Summary -
2020-02-05 01:03:40 : - Added Files - Source: 0 (0) - Target: 18,414 (33.31GB)
2020-02-05 01:03:40 : - Updated Files - Source: 0 (0) - Target: 0 (0)
2020-02-05 01:03:40 : - Deleted Files - Source: 0 (0) - Target: 0 (0)
2020-02-05 01:03:40 : - Added Subfolders - Source: 0 - Target: 2,728
2020-02-05 01:03:40 : - Deleted Subfolders - Source: 0 - Target: 0
2020-02-05 01:03:40 : - Status Summary -
2020-02-05 01:03:40 : - Total Files - Source: 18,414 (33.31GB) - Target: 18,414 (33.31GB)
2020-02-05 01:03:40 : - Excluded Files - Source: 0 (0) - Target: 0 (0)
2020-02-05 01:03:40 : - Matched Files - Source: 18,414 (33.31GB) - Target: 18,414 (33.31GB)
2020-02-05 01:03:40 : - Single Files - Source: 0 (0) - Target: 0 (0)
2020-02-05 01:03:40 : - Newer Files - Source: 0 (0) - Target: 0 (0)
2020-02-05 01:03:40 : - Older Files - Source: 0 (0) - Target: 0 (0)
2020-02-05 01:03:40 : - Total Subfolders - Source: 2,728 - Target: 2,728
2020-02-05 01:03:40 : - Excluded Subfolders - Source: 0 - Target: 0
2020-02-05 01:03:40 : - Matched Subfolders - Source: 2,728 - Target: 2,728
2020-02-05 01:03:40 : - Single Subfolders - Source: 0 - Target: 0
2020-02-05 01:03:40 : Running script E:\ViceVersa Pro\logs\DeleteBackupFolder.vbs
2020-02-05 01:03:43 : Script Output:
2020-02-05 01:03:43 : Microsoft (R) Windows Script Host Version 5.812
2020-02-05 01:03:43 : Copyright (C) Microsoft Corporation. All rights reserved.
2020-02-05 01:03:43 : 2/5/2020 1:03:40 AM - Script Start
2020-02-05 01:03:43 : 2/5/2020 1:03:40 AM -
2020-02-05 01:03:43 : 2/5/2020 1:03:40 AM - Backup folders older than 12/7/2019 will be deleted.
2020-02-05 01:03:43 : 2/5/2020 1:03:40 AM - Old Directory H:\Backup\0928 dated 9/28/2019 12:00:03 AM will be deleted.
2020-02-05 01:03:43 : 2/5/2020 1:03:40 AM - Directory delete failed: H:\Backup\0928,Error Description: Path not found
2020-02-05 01:03:43 : 2/5/2020 1:03:40 AM - Old Directory H:\Backup\0929 dated 9/29/2019 12:00:03 AM will be deleted.
2020-02-05 01:03:43 : 2/5/2020 1:03:40 AM - Directory delete failed: H:\Backup\0929,Error Description: Path not found
2020-02-05 01:03:43 : 2/5/2020 1:03:40 AM - Old Directory H:\Backup\0930 dated 9/30/2019 12:00:03 AM will be deleted.
2020-02-05 01:03:43 : 2/5/2020 1:03:40 AM - Directory delete failed: H:\Backup\0930,Error Description: Path not found
2020-02-05 01:03:43 : 2/5/2020 1:03:40 AM - Old Directory H:\Backup\1001 dated 10/1/2019 12:00:03 AM will be deleted.
2020-02-05 01:03:43 : 2/5/2020 1:03:40 AM - Directory delete failed: H:\Backup\1001,Error Description: Path not found
2020-02-05 01:03:43 : 2/5/2020 1:03:40 AM - Old Directory H:\Backup\1002 dated 10/2/2019 12:00:03 AM will be deleted.
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8684

PostPosted: Wed Feb 05, 2020 11:04 pm    Post subject: Reply with quote

Hi, I think you can add some "debug" commands in the vbs file, e.g. check access, who is account etc.
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
kenz



Joined: 29 May 2019
Posts: 3

PostPosted: Thu Feb 06, 2020 3:29 pm    Post subject: Reply with quote

When the script is called from the profile what id does it run under? Is it the same that runs the profile?
Back to top
kenz



Joined: 29 May 2019
Posts: 3

PostPosted: Thu Feb 06, 2020 4:06 pm    Post subject: Reply with quote

Never mind I figured it out. If anyone is interested the issue was caused by the path names being to long so the delete command was failing and giving that confusing message.
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8684

PostPosted: Fri Feb 07, 2020 1:12 am    Post subject: Reply with quote

Thanks,

Quote:
When the script is called from the profile what id does it run under? Is it the same that runs the profile?


Yes, the user and privileges of the account running the profile.
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Support All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group
Copyright © TGRMN Software. TGRMN Software products: