Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Highlighted
9555269 Absent Member.
Absent Member.
1962 views

migfiles with --exclude-paths...

About to pull the trigger on a NetWare to OES migration. Interesting issue with migfiles.

We have a volume which hosts a number of departmental mapped drives (drive T:) and we're planning to go through a department at a time. I was planning to use --exclude-path to indicate which departments we have finished.

I know I can do each sub-folder individually. That script is pretty long since there are 40 or so folders in the DEPTS volume.

When I use --exclude-path and the --delete switch, migfiles does indeed exclude the specified NetWare source from the copy job. Unfortunately though, it doesn't exclude that folder on the destination path. All the files in that folder on the Linux OES box get deleted.

Is there anyway to have migfiles ignore a destination folder when using --delete? (Yes, I know I can write a script for each subfolder...)

Here's the command line we're using

migfiles -s servername -V DATA:DEPTS/ -x /media/nss/DATA --exclude-path DATA:DEPTS/IT -i --debug --sync "d-m-Y H:M" --delete --update-ifnewer

Thanks

jc
Labels (1)
0 Likes
3 Replies
Anonymous_User Absent Member.
Absent Member.

Re: migfiles with --exclude-paths...

$(UHi jc,

What is the advantage of using --exclude-path option for each folder which you do not want to migrate rather than migrating folder by folder? Or may be I have not understood the use case correctly?

migfiles provides facility where, you can write set of source paths in a file and corresponding destination paths in other file. You need to pass these files to -V and -x options of migfiles perpended with a symbol '@'.
For eg:

sourceFile:
DATA:DEPTS/dep1
DATA:DEPTS/dep2
DATA:DEPTS/dep3

destFile:
/media/nss/DATA/dep1
/media/nss/DATA/dep2
/media/nss/DATA/dep3

And the migfiles command would be (During sync):

migfiles -s servername -V @sourceFile -x @destFile -i --debug --sync "d-m-Y H:M" --delete --update-ifnewer

Let us know if this does not solve the problem?

As you said --delete option does not exclude paths specified in --exclude-path from destination. --exclude-path only excludes files from source server.

Thanks,
Akthar.

>>> 9555269<9555269@no-mx.forums.novell.com> 3/23/2010 10:36 PM >>>


About to pull the trigger on a NetWare to OES migration. Interesting
issue with migfiles.

We have a volume which hosts a number of departmental mapped drives
(drive T:) and we're planning to go through a department at a time. I
was planning to use --exclude-path to indicate which departments we have
finished.

I know I can do each sub-folder individually. _That_ script is pretty
long since there are 40 or so folders in the DEPTS volume.

When I use --exclude-path and the --delete switch, migfiles does indeed
exclude the specified NetWare source from the copy job. Unfortunately
though, it doesn't exclude that folder on the destination path. All the
files in that folder on the Linux OES box get deleted.

Is there anyway to have migfiles ignore a destination folder when using
--delete? (Yes, I know I can write a script for each subfolder...)

Here's the command line we're using

migfiles -s servername -V DATA:DEPTS/ -x /media/nss/DATA --exclude-path
DATA:DEPTS/IT -i --debug --sync "d-m-Y H:M" --delete --update-ifnewer

Thanks

jc


--
9555269
------------------------------------------------------------------------
9555269's Profile: http://forums.novell.com/member.php?userid=12935
View this thread: http://forums.novell.com/showthread.php?t=405543



0 Likes
9555269 Absent Member.
Absent Member.

Re: migfiles with --exclude-paths...

Actually, the use of '-V @' and '-x @' is exactly what I was looking for.

Curious, is this convention (using @filename to include a list) a Linux trick or a feature built into migfiles? I can't find it documented anywhere!!!

Thanks*10^6
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: migfiles with --exclude-paths...

$(UThis is a feature built in migfiles. Yes, this feature is not documented. We will document this along with usage.

Thanks,
Akthar.

>>> 9555269<9555269@no-mx.forums.novell.com> 3/25/2010 4:26 AM >>>


Actually, the use of '-V @' and '-x @' is exactly what I was lookingfor.

Curious, is this convention (using @-filename- to include a list) a
Linux trick or a feature built into migfiles? I can't find it
documented anywhere!!!

Thanks*10^6


--
9555269
------------------------------------------------------------------------
9555269's Profile: http://forums.novell.com/member.php?userid=12935
View this thread: http://forums.novell.com/showthread.php?t=405543



0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.