u1sdtool is a command-line application that can be used to start, interact and shutdown Ubuntu One file synchronization service (ubuntuone-syncdaemon).

This page describes u1sdtool as appears in 3.0.0-0ubuntu1 version of ubuntuone-client as shipped in Ubuntu 12.04 (Precise Pangolin).

Under Windows, the u1sdtool.exe application is located in \Program Files\ubuntuone\dist\u1sdtool.exe and accepts the same options as the Ubuntu version. In Ubuntu u1sdtool is available from ubuntuone-client package and installs itself to /usr/bin/u1sdtool.

Usage: u1sdtool [option]

Options:
  -h, --help            show this help message and exit
  -w, --wait            Wait until ubuntuone-syncdaemon reaches nirvana
  --accept-share=SHARE_ID
                        Accept the share with the specified id
  --reject-share=SHARE_ID
                        Reject the share with the specified id
  --list-shares         Get the list of shares
  --subscribe-share=SHARE_ID
                        Subscribe to a share specified by id
  --unsubscribe-share=SHARE_ID
                        Unsubscribe from a share specified by id
  --refresh-shares      Request a refresh of the list of shares to the server
  --offer-share=PATH USER SHARE_NAME ACCESS_LEVEL
                        Share PATH to USER.
  --list-shared         List the shared paths/shares offered.
  --create-folder=PATH  Create user defined folder in the specified path
  --delete-folder=FOLDER_ID
                        Delete user defined folder in the specified path
  --list-folders        List all the user defined folders
  --subscribe-folder=FOLDER_ID
                        Subscribe to the folder specified by id
  --unsubscribe-folder=FOLDER_ID
                        Unsubscribe from the folder specified by id
  --refresh-volumes     Request a refresh of the list of volumes to the server
  --rescan-from-scratch=VOLUME_ID
                        Request a rescan from scratch for a volume.
  --publish-file=PATH   Publish file publicly.
  --unpublish-file=PATH
                        Stop publishing file publicly.
  --info=PATH           Request the metadata of PATH
  --list-dirty-nodes    Show the list of nodes marked as 'dirty'
  --current-transfers    show the current uploads and downloads
  -q, --quit            Shutdown the syncdaemon
  -c, --connect         Connect the syncdaemon
  -d, --disconnect      Disconnect the syncdaemon
  -s, --status          Get the current status of syncdaemon
  --waiting             Get the list of operations being executed
  --waiting-content     Get the waiting content list - Warning: this option is
                        deprecated, use '--waiting' instead
  --waiting-metadata    Get the waiting metadata list - Warning: this option
                        is deprecated, use '--waiting' instead
  --free-space=VOLUME_ID
                        Get the free space for the volume
  --start               Start syncdaemon if it's not running
  --version             Print the version number and exit

~/Ubuntu One volume

The default volume (internally called "root") is available as ~/Ubuntu One folder. Whenever you need to supply the VOLUME_ID and you want to use the root volume, you will need to supply an empty string:

$ # Find out how much space is left in ~/Ubuntu One:
$ u1sdtool --free-space=''
Free space: 54140590616 bytes

Metadata information

File: /home/rtg/Ubuntu One/test-file.txt
  crc32: 1880114715
  generation: 44863
  info_created: 1336646514.72
  info_is_partial: False
  info_last_uploaded: 1336735069.95
  info_node_id_assigned: 1336646515.09
  is_dir: False
  local_hash: sha1:8dd04dbdc09e4b0c967e4199cbf5eb28ad984e2c
  mdid: cccfeae2-1586-403c-bcfc-f85c0d490029
  node_id: 51a11036-7033-4d16-a677-c9e6df32f699
  path: /home/rtg/Ubuntu One/test-file.txt
  server_hash: sha1:8dd04dbdc09e4b0c967e4199cbf5eb28ad984e2c
  share_id: 
  size: 24
  stat: posix.stat_result(st_mode=33204, st_ino=20973970,
                         st_dev=2049L, st_nlink=1, st_uid=1000,
                         st_gid=1000, st_size=24, st_atime=1336735060,
                         st_mtime=1336735069, st_ctime=1336735069)

UbuntuOne/u1sdtool (last edited 2012-05-11 14:30:43 by host-60-59-151-193)