• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • Community Tip: Please Give Thanks to Those Sharing Their Knowledge.

    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.

  • Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)

    Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.

retrieve directories with special characters from console

waelti

ADSM.ORG Member
#1
Sometimes we need to retrieve directories with contain special characters (äöüß).
The problem is, that I can´t type those characters in the console, because in TSM they are unicode.
In the attached picture you can see what I get, if I do a "q ar \\amanda\Projekte\Projekt\Abteilungsprojekte\B15\B151\UWS\Nifco\*"
The real result should be "\\amanda\Projekte\Projekt\Abteilungsprojekte\B15\B151\UWS\Nifco\20170663_Erprobung_Haken_Gepäckraum_10207400"
If I copy the string in the console (Windows), the special character is missing (in this case "ä")
So a retrieve doesn´t work (console closes after executing <Enter>)
I tried to set the codepage to unicode (65001), but this doesn´t change anything.
I don´t want to use the retrieve gui, because on TSM 7.1.6 it takes about 90 minutes, before ist opens. It seems, that the retrieve gui searches for all files, which are ever archived, before it opens. The restore gui doesn´t have this behaviour, it open immediately. I tried to use "-pick", but this takes only the directory without any file/directory below. I always need "-subdir=yes replace=no"
 

marclant

ADSM.ORG Moderator
#2
Use the ?, it's a single character wildcard:

dsmc restore "\\amanda\Projekte\Projekt\Abteilungsprojekte\B15\B151\UWS\Nifco\20170663_Erprobung_Haken_Gep?ckraum_10207400"
 

waelti

ADSM.ORG Member
#3
Sorry, it doesn´t work:
tsm> q ar "\\amanda\projekte\Projekt\Abteilungsprojekte\B15\B151\UWS\Nifco\20170663_Erprobung_Haken_Gep?ckraum_10207400\*"
ANS1092W No files matching search criteria were found

I tried it before with a "*", this did not work (same error), so I didn´t try the "?"
tsm> q ar "\\amanda\projekte\Projekt\Abteilungsprojekte\B15\B151\UWS\Nifco\20170663_Erprobung_Haken_Gep*\*"
If a "q ar" doesn´t work, a "restore" shouldn´t work too, or am I wrong?
 

marclant

ADSM.ORG Moderator
#4
If you do:
q ar "\\amanda\projekte\Projekt\Abteilungsprojekte\B15\B151\UWS\Nifco\"
Do you see 20170663_Erprobung_Haken_Gep?ckraum_10207400 in the output?
 

waelti

ADSM.ORG Member
#5
I see it, but the "ä" is another character (see attached file).
If I use Lucida console as a font, I see the "ä", but all after it is cut off.
I think, I need a console, which supports unicode character set, but I didn´t know any.
 

Attachments

waelti

ADSM.ORG Member
#7
If I copy it, the special character isn´t copied (it looks like "20170663_Erprobung_Haken_Gepckraum_10207400"
When I hit <Enter> the console closes, I don´t even get an error message.
 

chad_small

ADSM.ORG Moderator
#9
You might need to inspect the file in the backup and/or archive table to see how Spectrum Protect handled the file when it was backed up. Did it replace the character or did it capture it. I would run a select query on the backup table with the details of the directory (HL_NAME) to just before the stated directory with the problem character(s).
 

waelti

ADSM.ORG Member
#11
Because Windows doesn´t seems to support unicode, I tried to use a Linux-client. When I start "dsmc -virtualnode=IN-PCSERVER" I get the warning "ANR1949W Session 1014 for node IN-PCSERVER (Linux x86-64) refused - the node has a unicode filespace but the client does not use unicode." LC_ALL is set to de_DE.utf-8. The version of the client is 7.1.8 . Does anybody know, how I have to configure the Linux-client to use unicode?
 

marclant

ADSM.ORG Moderator
#12
Because Windows doesn´t seems to support unicode, I tried to use a Linux-client. When I start "dsmc -virtualnode=IN-PCSERVER" I get the warning "ANR1949W Session 1014 for node IN-PCSERVER (Linux x86-64) refused - the node has a unicode filespace but the client does not use unicode." LC_ALL is set to de_DE.utf-8. The version of the client is 7.1.8 . Does anybody know, how I have to configure the Linux-client to use unicode?
You can't. Windows is the only client that uses unicode filespaces. You have to use the same type of client to do the restore as was used for the backup.
 

Advertise at ADSM.ORG

If you are reading this, so are your potential customer. Advertise at ADSM.ORG right now.

UpCloud high performance VPS at $5/month

Get started with $25 in credits on Cloud Servers. You must use link below to receive the credit. Use the promo to get upto 5 month of FREE Linux VPS.

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 10 14.1%
  • Keep using TSM for Spectrum Protect.

    Votes: 46 64.8%
  • Let's be formal and just say Spectrum Protect

    Votes: 9 12.7%
  • Other (please comement)

    Votes: 6 8.5%

Forum statistics

Threads
31,267
Messages
133,179
Members
21,405
Latest member
churu1k
Top