Wildcard %year% or %month% is not expanded/ignored

Advertisement

KlausKoeppen
Joined:
Posts:
2
Location:
Germany, Dornhan

Wildcard %year% or %month% is not expanded/ignored

Hi,
I use a small batch for automatic backups. The source (to be backuped) is stored for each month in an separate destination folder. The name is (for example : September) : Month_09
With this line (from my batch) I try to build the name of the current month, but it doesnlt work.
  "open sftp://u..:xxxx.your-storagebox.de -hostkey=....,,,,," ^
  "synchronize remote -delete c:\SRC_Backup /Monatssicherungen/Monat_%month%" ^
The wildcard %month% is totally ignored, Monat_ is used as destination.
The same is with %year%
What is wrong?
Best regards Klaus

Reply with quote

Advertisement

KlausKoeppen
Joined:
Posts:
2
Location:
Germany, Dornhan

TIMESTAMP not expanded

What is wrong?? TIMESTAMP.... doesn't work correctly.
I use the following line (in a Batchfile) :
"synchronize remote -delete C:\Schrott /Monatssicherungen/Monat_%TIMESTAMP#mm%"
The Folder Monat_11 exists in the Server, but I get get the error :
'Fehler beim Anzeigen des Verzeichnisses "/Monatssicherungen/Monat_".
Datei oder Verzeichnis nicht gefunden. Fehlercode 2

Reply with quote

Advertisement

You can post new topics in this forum