Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

Delete the 'Source' folder AFTER a MOVE operation

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



Joined: 29 Jan 2015
Posts: 277

PostPosted: Fri Aug 03, 2018 5:23 am    Post subject: Delete the 'Source' folder AFTER a MOVE operation Reply with quote

ViceVersa Pro 3.0 - Build 3001 - (64-bit) + Windows 10 Pro for Workstations 1803

If I create a 'Move to Target. For replication (update target) method only' Job, VV moves files and folders correctly to the 'Destination', but what it does not seem to do is delete the 'Source' folder (which is by now empty). Would it be possible for VV to do so please, perhaps by way of an extra option ?

On occasions I'm transferring data from a folder where explicit permissions apply and staff will have shortcuts to that folder. The last thing I want them to do is to continue to use/save to a folder that has moved elsewhere Smile

At the moment I have to go back and manually delete affected folders, this is not ideal.


Last edited by Alice on Fri Aug 03, 2018 5:32 am; edited 2 times in total
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8758

PostPosted: Fri Aug 03, 2018 5:25 am    Post subject: Reply with quote

Hi, are you referring to the root source folder? thanks
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Alice



Joined: 29 Jan 2015
Posts: 277

PostPosted: Fri Aug 03, 2018 5:29 am    Post subject: Reply with quote

Wow, quick answer, I was just updating the text to clarify Smile

Not sure what you mean by 'root'
Back to top
Alice



Joined: 29 Jan 2015
Posts: 277

PostPosted: Fri Aug 03, 2018 5:31 am    Post subject: Reply with quote

'Source' to delete would be :

\\?\UNC\ibm\share01$\Leasehold Services\Leaseholder Files\Fire Doors

Only the 'Fire Doors' folder to be deleted Smile
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8758

PostPosted: Fri Aug 03, 2018 10:58 am    Post subject: Reply with quote

Hi, what are the source and target folder for this profile?
Empty source subfolders should be moved to target if they are empty, e.g. deleted after copying. Are there any errors in the log? thanks!
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Alice



Joined: 29 Jan 2015
Posts: 277

PostPosted: Fri Aug 03, 2018 7:09 pm    Post subject: Reply with quote

Simplified example :

src : "C:\- Working Files\abc\"
dest : "S:\- Working Files\abc\"

I would expect all files (there's just 1) from 'C:\- Working Files\abc' to be moved to the equivalent 'S:' path, which they are.

But then I would also hope/expect 'Source' folder 'abc' - 'C:\- Working Files\abc' ie the 'Source' folder from where the Move operation began (which is now empty) to also be deleted. In my tests it is not.


log :


2018-08-03 20:02:33 :
2018-08-03 20:02:33 : -
2018-08-03 20:02:33 : ************************************************************
2018-08-03 20:02:33 : Profile Started.
2018-08-03 20:02:33 : ************************************************************
2018-08-03 20:02:33 : Version: ViceVersa PRO 3.0 Build 3001 64-bit (SN458) [Registered][LBH--1-Lic...]
2018-08-03 20:02:33 : Command Line: "C:\Apps\ViceVersa Pro\ViceVersa.exe"
2018-08-03 20:02:33 : System: Windows 10, (64 Bit Edition), (x86-64 Processor), (120dpi) v10.0 Build:17134
2018-08-03 20:02:33 : User: Admin
2018-08-03 20:02:33 : Computer: W
2018-08-03 20:02:33 : **** - Folders -
2018-08-03 20:02:33 : **** Source: "C:\- Working Files\abc\"
2018-08-03 20:02:33 : **** Target: "S:\- Working Files\abc\"
2018-08-03 20:02:33 : **** Include Subfolders: Yes
2018-08-03 20:02:33 : **** Create sources/targets that do not exist
2018-08-03 20:02:33 : **** - Comparison Settings -
2018-08-03 20:02:33 : **** Comparison Type: Size and Timestamp
2018-08-03 20:02:33 : **** - Execution Settings -
2018-08-03 20:02:33 : **** Method: Replication (Update Target) -> Move
2018-08-03 20:02:33 : **** Log File: "C:\- Working Files\log.log" (max 10000 KB)
2018-08-03 20:02:33 : **** No archive for deleted/replaced source files
2018-08-03 20:02:33 : **** No archive for deleted/replaced target files
2018-08-03 20:02:33 : Checking source C:\- Working Files\abc\ ...
2018-08-03 20:02:33 : Total found: 1
2018-08-03 20:02:33 : Checking target S:\- Working Files\abc\ ...
2018-08-03 20:02:33 : Total found: 0
2018-08-03 20:02:33 : Comparing ...
2018-08-03 20:02:33 : Comparing done.
2018-08-03 20:02:33 : Building index of display items: 0 sec 0 ms
2018-08-03 20:02:33 : - Status Summary -
2018-08-03 20:02:33 : - Total Files - Source: 1 (798.42KB) - Target: 0 (0)
2018-08-03 20:02:33 : - Excluded Files - Source: 0 (0) - Target: 0 (0)
2018-08-03 20:02:33 : - Matched Files - Source: 0 (0) - Target: 0 (0)
2018-08-03 20:02:33 : - Single Files - Source: 1 (798.42KB) - Target: 0 (0)
2018-08-03 20:02:33 : - Newer Files - Source: 0 (0) - Target: 0 (0)
2018-08-03 20:02:33 : - Older Files - Source: 0 (0) - Target: 0 (0)
2018-08-03 20:02:33 : - Total Subfolders - Source: 0 - Target: 0
2018-08-03 20:02:33 : - Excluded Subfolders - Source: 0 - Target: 0
2018-08-03 20:02:33 : - Matched Subfolders - Source: 0 - Target: 0
2018-08-03 20:02:33 : - Single Subfolders - Source: 0 - Target: 0
2018-08-03 20:02:33 : Comparison total time: 0 sec 728 ms
2018-08-03 20:02:33 : Memory Usage: [Working Set: 40.80MB (peak: 48.87MB) - Private Bytes: 12.34MB (peak: 20.46MB) - Page Faults: 32,444]
2018-08-03 20:03:01 :
2018-08-03 20:03:01 : ---- Start Execution ----
2018-08-03 20:03:01 : ---- Replication (Update Target) -> Move (Source: C:\- Working Files\abc\ Target: S:\- Working Files\abc\) ----
2018-08-03 20:03:01 : ---- Start moving ----
2018-08-03 20:03:01 : -- Moving to target...
2018-08-03 20:03:01 : Moving file C:\- Working Files\abc\- office 2016 - .png image that has 32 bit depth.png <to> S:\- Working Files\abc\- office 2016 - .png image that has 32 bit depth.png (798.42KB) [OK].
2018-08-03 20:03:01 : -- Done: 1 (798.42KB) Err: 0 (0) Skipped: 0 (0) Tot: 1 (798.42KB) --
2018-08-03 20:03:01 : -- Average Transfer Rate: 51.98MB/Sec -- Elapsed Time: 0 sec
2018-08-03 20:03:01 : Re-comparing ...
2018-08-03 20:03:01 : Building index of display items: 0 sec 6 ms
2018-08-03 20:03:01 : ---- Copying finished ----
2018-08-03 20:03:01 : ---- End ----
2018-08-03 20:03:01 : - Execution Summary -
2018-08-03 20:03:01 : - Added Files (Move) - Source: 0 (0) - Target: 1 (798.42KB)
2018-08-03 20:03:01 : - Updated Files (Move) - Source: 0 (0) - Target: 0 (0)
2018-08-03 20:03:01 : - Deleted Files - Source: 0 (0) - Target: 0 (0)
2018-08-03 20:03:01 : - Added Subfolders (Move) - Source: 0 - Target: 0
2018-08-03 20:03:01 : - Deleted Subfolders - Source: 0 - Target: 0
2018-08-03 20:03:01 : - Status Summary -
2018-08-03 20:03:01 : - Total Files - Source: 0 (0) - Target: 1 (798.42KB)
2018-08-03 20:03:01 : - Excluded Files - Source: 0 (0) - Target: 0 (0)
2018-08-03 20:03:01 : - Matched Files - Source: 0 (0) - Target: 0 (0)
2018-08-03 20:03:01 : - Single Files - Source: 0 (0) - Target: 1 (798.42KB)
2018-08-03 20:03:01 : - Newer Files - Source: 0 (0) - Target: 0 (0)
2018-08-03 20:03:01 : - Older Files - Source: 0 (0) - Target: 0 (0)
2018-08-03 20:03:01 : - Total Subfolders - Source: 0 - Target: 0
2018-08-03 20:03:01 : - Excluded Subfolders - Source: 0 - Target: 0
2018-08-03 20:03:01 : - Matched Subfolders - Source: 0 - Target: 0
2018-08-03 20:03:01 : - Single Subfolders - Source: 0 - Target: 0
2018-08-03 20:03:05 : Closing comparison window: 0 sec 5 ms
2018-08-03 20:03:22 : Exit Code: 0. OK.
2018-08-03 20:03:22 : ************************************************************
2018-08-03 20:03:22 :
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8758

PostPosted: Sat Aug 04, 2018 1:08 am    Post subject: Reply with quote

Hi, so suppose you have also subfolder :

C:\- Working Files\abc\subfolder\

which is moved to target as part of the copy. That subfolder would be deleted from source. However, the root source C:\- Working Files\abc\ is not deleted after move, even if empty.

A way to deleted the root too would be to have a script to run after execution which deletes the source folder (and if not empty it will error out).
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Alice



Joined: 29 Jan 2015
Posts: 277

PostPosted: Sat Aug 04, 2018 7:01 am    Post subject: Reply with quote

Not the most elegant solution, but workable.

The only reason I would be using a MOVE job is because something is in the wrong place, so I'd want to move that something to the right place in its entirety. I'm not overly keen on a two-step operation as that's what did I did before the MOVE function existed. So previously I'd 'Mirror' copy the data to the 'Destination', check it arrived and was in order then go back and delete the 'Source' manually. This is time consuming because sometimes there are multiple jobs running overnight, so I have to remember to complete the tasks in the morning.

Having 3,500 staff it's really tricky working out who 'owns' what data (the individual or the Business Unit) and where it should be as there are so many staff movements between Units, leavers, new staff who accept a role then didn't take it up, actual new starters, apprentices, Business support staff that assist multiple Teams, long term absentees and on and on....and each have their own data requirements.

It would be nice for VV to remove the 'source' folder in a future version, perhaps by way of an extra option Smile
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8758

PostPosted: Sun Aug 05, 2018 2:05 am    Post subject: Reply with quote

Hi, by running a script after execution which deletes the source folder (and if not empty it will error out) I meant automatically, not manually, as part of the profile run (see profile settings -> advanced settings -> scripts).
The source folder is put in an environment variable VV_SOURCE_FOLDER

However also a new option for this could be useful! Cool

thanks
_________________
--
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: