netstack

edit

backup proceedure for netstack ops

rsync

Use rsync on windows via bash to move nstestShare (on c:) to network volume

rsync -avzP /mnt/c/nstestShare 'ssh -p22' buadmin@192.168.128.3:/volume1/bg/rsync
rsync -azrvP -e 'ssh -p 2020'  /mnt/d/cattvDVR/Hogan* buadmin@192.168.2.105:/volume1/pshare/tvOld/

robocopy

robocopy c:\source \\srv-vm2\share /v /log:c:\it\logs.txt
robocopy \\SG\CATMediaShare\11_CAT_Services D:\CATMediaShare\11_CAT_Services /s /e /z /log:D:\CATMediaShare\11_CAT_Services-log.txt
robocopy \\SG\CATMediaShare\11_CAT_Services D:\CATMediaShare\11_CAT_Services /s /e /z /i 

example check

Log File : C:\Video\checkFamilyTieslog.txt PS C:\WINDOWS\system32> cat C:\Video\checkFamilyTieslog.txt


ROBOCOPY :: Robust File Copy for Windows ——————————————————————————-

Started : Wednesday, August 21, 2024 8:29:22 AM Source : \192.168.6.6\pshare\catShows\Family Ties (1982)
Dest : C:\Video\Family Ties (1982)\

Files : *.*

Options : . /L /S /E /DCOPY:DA /COPY:DAT /Z /R:1000000 /W:30


                       0    \\192.168.6.6\pshare\catShows\Family Ties (1982)\
                      22    \\192.168.6.6\pshare\catShows\Family Ties (1982)\Family Ties (1982) S01\
                      24    \\192.168.6.6\pshare\catShows\Family Ties (1982)\Family Ties (1982) S02\
                      25    \\192.168.6.6\pshare\catShows\Family Ties (1982)\Family Ties (1982) S03\
                      20    \\192.168.6.6\pshare\catShows\Family Ties (1982)\Family Ties (1982) S04\

           Total    Copied   Skipped  Mismatch    FAILED    Extras
Dirs :         5         0         5         0         0         0    Files :        91         0        91         0         0         0    Bytes : 102.685 g         0 102.685 g         0         0         0    Times :   0:00:00   0:00:00                       0:00:00   0:00:00    Ended : Wednesday, August 21, 2024 8:29:22 AM

PS C:\WINDOWS\system32>

- run powershell
```powsershell
tbd

Resources