Author Topic: Delete/keep document after loading  (Read 2148 times)

Daniel

  • Newbie
  • *
  • Posts: 2
    • View Profile
Delete/keep document after loading
« 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

jsquizz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 576
    • View Profile
Re: Delete/keep document after loading
« Reply #1 on: September 14, 2017, 09:34:51 AM »
Look into the -n flag of arsload:

 -n Do not remove files
#CMOD #DB2 #AFP2PDF #TSM #AIX #RHEL #AWS #AZURE #GCP #EVERYTHING

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2229
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Delete/keep document after loading
« Reply #2 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.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

Daniel

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Delete/keep document after loading
« Reply #3 on: September 14, 2017, 09:42:37 AM »
Thanks for the help.  I will give it a try

jsquizz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 576
    • View Profile
Re: Delete/keep document after loading
« Reply #4 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.
#CMOD #DB2 #AFP2PDF #TSM #AIX #RHEL #AWS #AZURE #GCP #EVERYTHING