contoh
PS C:\Users\Administrator.SEGER> cd..
PS C:\Users> cd..
PS C:\> cd '.\BACKUP SQL'
PS C:\BACKUP SQL> cd bal
cd : Cannot find path 'C:\BACKUP SQL\bal' because it does not exist.
At line:1 char:1
+ cd bal
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\BACKUP SQL\bal:String) [Set-Location], ItemNotFoundExce
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
PS C:\BACKUP SQL> cd bak
PS C:\BACKUP SQL\bak> dir
diatas itu directory tempat asal file
Directory: C:\BACKUP SQL\bak
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 5/17/2017 9:38 AM report_server
d---- 6/6/2017 8:23 AM SAN_LIVE
d---- 5/17/2017 9:38 AM SAN_LIVE_BASELINE
d---- 5/17/2017 9:38 AM SAN_LIVE_MODEL
-a--- 9/5/2017 12:51 AM 2384389751 BACKUP SQL - 20170904.7z
-a--- 9/6/2017 12:50 AM 2389700778 BACKUP SQL - 20170905.7z
-a--- 4/20/2017 8:12 AM 1746 doftp - Copy.bat
-a--- 6/22/2017 2:49 PM 1746 doftp.bat
-a--- 3/9/2017 8:53 AM 998 Downloads - Shortcut.lnk
-a--- 9/7/2017 8:55 AM 8727056 FileZilla_3.27.1_win64-setup_bundled4.exe
-a--- 9/6/2017 2:18 PM 240 goftp.bat
-a--- 9/7/2017 9:16 AM 0 nuel.txt
PS C:\BACKUP SQL\bak> ftp 10.10.12.24
PS C:\BACKUP SQL\bak> ftp 10.10.12.245
Connected to 10.10.12.245.
220 Backup02 FTP server ready.
User (10.10.12.245:(none)): Axbackup
331 Password required for AxBackup.
Password:
230 User AxBackup logged in.
ftp> cd D01
250 CWD command successful.
ftp> cd Axbackup
550 Axbackup: No such file or directory.
ftp> cd AxBackup/2017/09/
250 CWD command successful.
ftp> ls
200 PORT command successful.
150 Opening BINARY mode data connection for 'file list'.
BACKUP SQL - 20170901.7z
BACKUP SQL - 20170902.7z
BACKUP SQL - 20170903.7z
BACKUP SQL - 20170904.7z
BACKUP SQL - 20170906.7z
nuel.txt
226 Transfer complete.
ftp: 143 bytes received in 0.01Seconds 9.53Kbytes/sec.
ftp> put "BACKUP SQL - 20170905.7z"
200 PORT command successful.
150 Opening BINARY mode data connection for 'BACKUP SQL - 20170905.7z'.
Tidak ada komentar:
Posting Komentar