.st0{fill:#FFFFFF;}

How to copy IBM i IFS folder 

 June 29, 2019

By  NickLitten

AKA – How to copy IBM i IFS folder and all subfolders and documents to a new Location

I just upgraded a clients PRESTO Server to the current version 8.1

What is Presto? It’s commonly called an IBM i Modernization Application : Essentially transforming the old fashioned AS400 style Green Screen terminals to modern Webstyle graphical screens. But you knew that anyway right?

Me, stating the obvious June 2019

Once the upgrade was completed, I happily launched the signon screen excited to see what I could play with using the new Presto Screen Designer and *boom* error messages saying “javascript not found”

This is because the upgrade process did not copy the custom theme subfolder from the old version. I hunted this down and then realised I had to copy the folder and all related sub-folders and documents to the new server IFS location

Use ‘CPY SUBTREE(*ALL)’ to Copy an IFS folder to new location

Copy IFS Folder using IBM i CPY command:

CPY ?OBJ('/esdi/xl_presto_old/skins/Pacific') TODIR('/esdi/xl_presto/skins/Pacific') SUBTREE(*ALL)                           
How to copy IBM i IFS folder 1

When it finished I got a nice little message saying:

1658 objects copied.  0 objects failed. 

And that’s that – simples

The only reason I’m typing this is because I googled it, wondering if there was a new DUPLICATE IFS command out there. But I discovered lots of webpages talking about writing programs to do this, or saving and restoring, and these techniques are just not needed: the simple CPY command does it all.

šŸ™‚

NickLitten


IBM i Software Developer, Digital Dad, AS400 Anarchist, RPG Modernizer, Shameless Trekkie, Belligerent Nerd, Englishman Abroad and Passionate Eater of Cheese and Biscuits. Nick Litten Dot Com is a mixture of blog posts that can be sometimes serious, frequently playful and probably down-right pointless all in the space of a day. Enjoy your stay, feel free to comment and remember: If at first you don't succeed then skydiving probably isn't a hobby you should look into.

Nick Litten

related posts:

  • {"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
    __CONFIG_colors_palette__{"active_palette":0,"config":{"colors":{"cff50":{"name":"Main Accent","parent":-1},"a344d":{"name":"Accent Transparent","parent":"cff50"}},"gradients":[]},"palettes":[{"name":"Default","value":{"colors":{"cff50":{"val":"var(--tcb-skin-color-0)"},"a344d":{"val":"rgba(46, 138, 229, 0.85)","hsl_parent_dependency":{"h":210,"l":0.54,"s":0.78}}},"gradients":[]},"original":{"colors":{"cff50":{"val":"rgb(0, 178, 255)","hsl":{"h":198,"s":1,"l":0.5}},"a344d":{"val":"rgba(0, 178, 255, 0.85)","hsl_parent_dependency":{"h":198,"s":1,"l":0.5}}},"gradients":[]}}]}__CONFIG_colors_palette__

    Get In Touch

    Iā€™m always looking for awesome input, feedback and critique!

    >