ludviglundgren / qbittorrent-cli

Cli to manage qBittorrent
MIT License
158 stars 17 forks source link

Import backup fails with socket error. #45

Closed Mycah closed 1 year ago

Mycah commented 1 year ago

Trying to do an import from rtorrent to qbt:

$ ./qbt import --source rtorrent --source-dir ~/rtorrent/session --qbit-dir ~/.local/share/qBittorrent/BT_backup --dry-run
Prepare to backup torrent data before import..
Creating rtorrent backup of directory: /home/user/rtorrent/session to /home/user/qbt_backup/rtorrent_backup_20230410104453.tar.gz ...
could not backup directory: "walking /home/user/rtorrent/session: /home/user/rtorrent/session/rpc.socket: writing: session/rpc.socket: making header: archive/tar: sockets not supported"
Error: walking /home/user/rtorrent/session: /home/user/rtorrent/session/rpc.socket: writing: session/rpc.socket: making header: archive/tar: sockets not supported
Usage:
  qbt import [flags]

Flags:
      --dry-run             Run without doing anything
  -h, --help                help for import
      --qbit-dir string     qbit dir (required)
      --skip-backup         Skip backup before import. Not advised
      --source string       source client [deluge, rtorrent] (required)
      --source-dir string   source client state dir (required)

Global Flags:
      --config string   config file (default is $HOME/.config/qbt/.qbt.toml)

Seems to work fine with --skip-backup

Mycah commented 1 year ago

oh i see. i have a link to my socket in this directory, my fault.

Mycah commented 1 year ago

closed