Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 1.8.x

I cannot backup buckets from remote machine

No replies
  • Login or register to post comments
Wed, 09/05/2012 - 00:17
vtthanh9999
Offline
Joined: 09/04/2012
Groups: None

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

Top
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker