I cannot backup buckets from remote machine
Hi Experts, I am using Coubase server 1.8.1 and I would like to backup buckets from remote machine by using Powershell invoke-command.
Step 1: I created a bat file in Couchbase machine to execute cbbackup.exe to backup test bucket:
powershell Set-ExecutionPolicy RemoteSigned
C:
cd "C:\Backup\Buckets"
md test
cd test
md test
cd "C:\Program Files\Couchbase\Server\bin"
.\cbbackup.exe "C:/Program Files/Couchbase/Server/var/lib/couchbase/data/test-data/test" "C:/Backup/Buckets/test/test/"
Step 2: Execute this bat file from Couchbase machine, it works well with the output included 5 files:
test: 51KB
test-0.mb: 300KB
test-1.mb: 300KB
test-2.mb: 300KB
test-3.mb: 300KB
Step 3: I used Powershell invoke-command to execute this bat file from another machine in the same domain name:
invoke-command -computername SBCBUT01 -scriptblock {start-process cmd -ArgumentList "/C C:\Backup\BackupBucket.bat"}
Note: SBCBUT01 is my Couchbase machine name.
But the output files in this step included 2 files only:
test: 51KB
test-journal: 1KB
What is the problem with execution from remote machine? What should I do to have the output result as step 2?
Thanks and Best Regards,
Thanh