Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

Move Files Only

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



Joined: 10 Jul 2020
Posts: 3

PostPosted: Fri Jul 10, 2020 6:20 pm    Post subject: Move Files Only Reply with quote

Here's my scenario.

1000's of folders/subfolders (4TB on multiple drives)

I used your KB to replicate file structure to Target
https://www.tgrmn.com/web/kb/item118.htm

Task:
Files to find, *.sas7bdat (at least 2tb of file type of server)
Exclude files created or modified After 1/1/2015
Compression On

Method: Replication (Update Target) (WITHOUT MOVE TO TARGET)

Have to run this method first as Management wants to confirm the Source is not negatively affected.

Goal: Eventually delete those files off production server. Retain compressed files on Target as an archive.

I found this on another post to confirm one concern I had, which is great.

Move to Target. For Replication (Update Target) method only.
Enable this option to move files from source to target, e.g. copy files then delete them from source. When this option is enabled with the Replication (Update Target) method:

* If a Source file has a matching Target file already, then the file is deleted from the Source.

Question: When I run my final job using the "Move to Target" option, will it delete any folders in the Source where the files were located? After reading some posts it is unclear to me if this is true. I don't want it to alter the Source folder structure even if it leaves empty folders.
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8762

PostPosted: Sat Jul 11, 2020 11:04 am    Post subject: Reply with quote

Hi, I tested it and noticed that if the source folders are completely empty and already existing in target, then they are deleted from target (moved).
One idea could be then to recopy them to source from target and copy only the folder structure again.
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
DedicatedStateWorker



Joined: 10 Jul 2020
Posts: 3

PostPosted: Sat Jul 11, 2020 5:58 pm    Post subject: Reply with quote

TGRMN Software wrote:
Hi, I tested it and noticed that if the source folders are completely empty and already existing in target, then they are deleted from target (moved). <<< I think you meant Source
One idea could be then to recopy them to source from target and copy only the folder structure again.



I setup a test directory to mimic my scenario. When setting the method to [Replication (Update Target) -> Move] and click the Preview button I see the folders that would be deleted if Empty as shown below.

Question: Is there a way to disable/override the Will DELETE from SOURCE if empty command for Folders/Subfolders? It almost has the capability to just move files from the Source. If it only had that option. Wink


Preview Window Details

Will DELETE from SOURCE:
1 - Will DELETE SOURCE FOLDER \\?\C:\Root\Dir1\Dir1-A\ if empty (Matching folder already in target)
2 - Will DELETE SOURCE FOLDER \\?\C:\Root\Dir1\Dir1-B\ if empty (Matching folder already in target)
3 - Will DELETE SOURCE FOLDER \\?\C:\Root\Dir1\Dir1-C\ if empty (Matching folder already in target)
4 - Will DELETE SOURCE FOLDER \\?\C:\Root\Dir2\Dir2-B\ if empty (Matching folder already in target)
5 - Will DELETE SOURCE FOLDER \\?\C:\Root\Dir3\Dir3-B\ if empty (Matching folder already in target)

Will DELETE from TARGET:
Nothing.

Thanks!
Back to top
Alice



Joined: 29 Jan 2015
Posts: 277

PostPosted: Sun Jul 12, 2020 8:13 am    Post subject: Reply with quote

This is very similar to a query I had a while back :

Code:
https://www.tgrmn.com/web/forum/viewtopict5746&highlight=.htm


the solution was to create a VVPlaceholder.txt file in the 'what will be' (after the Move Job has run) empty Source folders and then exclude that file via 'File Filters'. When the Move Job is executed this has the effect of preserving the otherwise empty (…..with the exception of the 'VVPlaceholder.txt') Source folders.
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8762

PostPosted: Mon Jul 13, 2020 1:24 am    Post subject: Reply with quote

Hi
Quote:

Question: Is there a way to disable/override the Will DELETE from SOURCE if empty command for Folders/Subfolders? It almost has the capability to just move files from the Source. If it only had that option.


This option is not available at the moment, sorry
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
DedicatedStateWorker



Joined: 10 Jul 2020
Posts: 3

PostPosted: Mon Jul 20, 2020 7:23 pm    Post subject: Reply with quote

Requesting this be added to a "Wish List" for a potential addition.
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: