Menu

#463 Backup

open
nobody
None
3
2023-05-22
2023-05-21
boubou
No

Hi,
I use 7-zip from command line to backup some files and folders on my laptop.
I use that line
"C:\Program Files"\7-Zip\7z.exe a -t7z -mfb=273 -ms -md=31 -myx=9 -mtm=- -mmt -mmtf -md=1536m -mmf=bt3 -mmc=10000 -mpb=0 -mlc=0 -spf -mhc=on -mhe=on -puiouoxhjk! "%USERPROFILE%"\OneDrive\Backup\Backup.7z -xr@"%USERPROFILE%"\OneDrive\7-Zip\Exclude.txt @"%USERPROFILE%"\OneDrive\7-Zip\Include.txt
I attached a screenshot of the Include.txt and the exclude.txt.

When I run the command, I got this output and I would like to understand why.

Scanning the drive:

WARNING: The system cannot find the file specified.
D:\"Vandyke_Settings_KnownHosts + Logs"

WARNING: The system cannot find the file specified.
"%PROGRAMFILES%"

WARNING: The system cannot find the file specified.
"%USERPROFILE%"

WARNING: The system cannot find the file specified.
C:\"Batch Files"

229 folders, 1472 files, 167046220 bytes (160 MiB)

Creating archive: ......................

I checked permissions and they are OK.

Is it a way to debug it ?
Are variable supported in the Include file ?

2 Attachments

Discussion

  • boubou

    boubou - 2023-05-21

    D:\"Vandyke_Settings_KnownHosts + Logs" : The system cannot find the file specified.
    "%PROGRAMFILES%" : The system cannot find the file specified.
    "%USERPROFILE%" : The system cannot find the file specified.

    C:\"Batch Files" : The system cannot find the file specified.

    Scan WARNINGS: 4

     

    Last edit: boubou 2023-05-21
  • Igor Pavlov

    Igor Pavlov - 2023-05-21

    7-zip doesn't resolve the variables.

     
  • boubou

    boubou - 2023-05-22

    Thanks for ultra fast answer.
    What do you think about options in my command ?
    7z.exe a -t7z -mfb=273 -ms -md=31 -myx=9 -mtm=- -mmt -mmtf -md=1536m -mmf=bt3 -mmc=10000 -mpb=0 -mlc=0 -spf -mhc=on -mhe=on -puiouoxhjk!
    Are they the best and effective ?

    What about
    C:\"Batch Files" : The system cannot find the file specified
    D:\"Vandyke_Settings_KnownHosts + Logs" : The system cannot find the file specified.
    How can I troubleshoot the issue ?

    Thanks again in advance Igor.

     
  • Igor Pavlov

    Igor Pavlov - 2023-05-22

    Use such forms:

    "C:\Batch Files" 
    C:\Batch Files
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.