OnDemand User Group

Support Forums => MP Server => Topic started by: Daniel on September 14, 2017, 09:00:44 AM

Title: Delete/keep document after loading
Post by: Daniel on September 14, 2017, 09:00:44 AM
Hi everyone

Can I control whether a document gets deleted after being loaded into OnDemand ?  Can I leave the original document in place ?

I actually have two issues:

1. User want to delete documents after loading into CMOD.
2. User wants to keep original document after loading into CMOD.

Thanks
Title: Re: Delete/keep document after loading
Post by: jsquizz on September 14, 2017, 09:34:51 AM
Look into the -n flag of arsload:

 -n Do not remove files
Title: Re: Delete/keep document after loading
Post by: Justin Derrick on September 14, 2017, 09:37:34 AM
Heh.  Jeff beat me to it.

Just a word of warning though...  If you restart arsload, you're going to end up with duplicates.  And if you don't clean out that directory regularly, you're going to end up with a LOT of duplicates.

-JD.
Title: Re: Delete/keep document after loading
Post by: Daniel on September 14, 2017, 09:42:37 AM
Thanks for the help.  I will give it a try
Title: Re: Delete/keep document after loading
Post by: jsquizz on September 14, 2017, 11:45:12 AM
Thanks for the help.  I will give it a try

Just as a tip from a bunch of CMOD installs I've seen..

All the times that arsload is ran as a deamon, or even when it's called programmatically, ive always seen -nvf.

Whenever I am doing my own unit testing, messing around with CMOD, or just trying something, I just got in the habit of typing -nvf as a flag.