{"action":"opened","issue":{"url":"https://api.github.com/repos/borgbackup/borg/issues/661","repository_url":"https://api.github.com/repos/borgbackup/borg","labels_url":"https://api.github.com/repos/borgbackup/borg/issues/661/labels{/name}","comments_url":"https://api.github.com/repos/borgbackup/borg/issues/661/comments","events_url":"https://api.github.com/repos/borgbackup/borg/issues/661/events","html_url":"https://github.com/borgbackup/borg/issues/661","id":133560656,"number":661,"title":"Add bandwidth limit support","user":{"login":"chebee7i","id":326005,"avatar_url":"https://avatars.githubusercontent.com/u/326005?v=3","gravatar_id":"","url":"https://api.github.com/users/chebee7i","html_url":"https://github.com/chebee7i","followers_url":"https://api.github.com/users/chebee7i/followers","following_url":"https://api.github.com/users/chebee7i/following{/other_user}","gists_url":"https://api.github.com/users/chebee7i/gists{/gist_id}","starred_url":"https://api.github.com/users/chebee7i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chebee7i/subscriptions","organizations_url":"https://api.github.com/users/chebee7i/orgs","repos_url":"https://api.github.com/users/chebee7i/repos","events_url":"https://api.github.com/users/chebee7i/events{/privacy}","received_events_url":"https://api.github.com/users/chebee7i/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-14T17:46:09Z","updated_at":"2016-02-14T17:46:09Z","closed_at":null,"body":"This issue appears on the checkbox list in #5. It is attic issue: https://github.com/jborg/attic/issues/103. I wasn't sure if we should be adding comments there or here.\r\n\r\n---\r\n\r\nThe original issue requests that support be adding to limit bandwidth. `trickle` was mentioned as an option. People said it wouldn't/didn't work since borg uses a pipe through ssh, while trickle works with sockets.\r\n\r\nI just wanted to report that if you are using borg with sshfs (i.e. backing up to rsync.net), then using trickle will work properly. You must call trickle when performing the ssh mount. So to limit bandwidth to 5 Mbps, you'd use:\r\n\r\n```\r\ntrickle -u 5000 sshfs username@hostname: /path/to/mountpoint\r\nborg create ...\r\n```"}}