[vpsFree.cz: community-list] vpsAdmin v2.3.0 -- stahování záloh v CLI
Vladimír Drgoňa
vlado at drgona.eu
Wed Mar 23 15:57:38 CET 2016
Ahoj, spustil som:
[root at doma /data/backup]# vpsfreectl backup vps 2959 sroot/data/backup
Will download 14 snapshots:
@2016-03-02T01:00:35
@2016-03-03T01:00:28
@2016-03-04T01:00:32
@2016-03-05T01:00:27
@2016-03-06T01:00:34
@2016-03-07T01:00:16
@2016-03-08T01:00:16
@2016-03-17T01:00:13
@2016-03-18T01:00:29
@2016-03-19T01:00:22
@2016-03-20T01:00:15
@2016-03-21T00:00:21
@2016-03-22T00:00:12
@2016-03-23T00:00:19
Performing a full receive of @2016-03-02T01:00:35 to sroot/data/backup/0
The download is being prepared...
Time: 00:51:35 Downloading 14.53 GB:
[===============================================================================================================================================================]
100% 4923 kB/s
Performing an incremental receive of @2016-03-02T01:00:35 -
@2016-03-23T00:00:19 to sroot/data/backup/0
The download is being prepared...
/usr/local/lib/ruby/gems/2.1/gems/ruby-progressbar-1.7.5/lib/ruby-progressbar/progress.rb:58:in
`progress=': You can't set the item's current value to be greater than
the total. (ProgressBar::InvalidProgressError)
from
/usr/local/lib/ruby/gems/2.1/gems/ruby-progressbar-1.7.5/lib/ruby-progressbar/base.rb:156:in
`block in update_progress'
from
/usr/local/lib/ruby/gems/2.1/gems/ruby-progressbar-1.7.5/lib/ruby-progressbar/output.rb:38:in
`with_refresh'
from
/usr/local/lib/ruby/gems/2.1/gems/ruby-progressbar-1.7.5/lib/ruby-progressbar/base.rb:155:in
`update_progress'
from
/usr/local/lib/ruby/gems/2.1/gems/ruby-progressbar-1.7.5/lib/ruby-progressbar/base.rb:99:in
`progress='
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/stream_downloader.rb:71:in
`block (2 levels) in initialize'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/stream_downloader.rb:66:in
`loop'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/stream_downloader.rb:66:in
`block in initialize'
from /usr/local/lib/ruby/2.1/net/http.rb:853:in `start'
from /usr/local/lib/ruby/2.1/net/http.rb:583:in `start'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/stream_downloader.rb:65:in
`initialize'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/stream_downloader.rb:11:in
`new'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/stream_downloader.rb:11:in
`download'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/snapshot_send.rb:74:in
`block in do_exec'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/snapshot_send.rb:70:in
`fork'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/snapshot_send.rb:70:in
`do_exec'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:278:in
`block in transfer'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:448:in
`call'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:448:in
`block in run_piped'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:445:in
`fork'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:445:in
`run_piped'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:277:in
`transfer'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:235:in
`exec'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_vps.rb:22:in
`exec'
from
/usr/local/lib/ruby/gems/2.1/gems/haveapi-client-0.5.2/lib/haveapi/cli/cli.rb:73:in
`initialize'
from
/usr/local/lib/ruby/gems/2.1/gems/haveapi-client-0.5.2/lib/haveapi/cli/cli.rb:13:in
`new'
from
/usr/local/lib/ruby/gems/2.1/gems/haveapi-client-0.5.2/lib/haveapi/cli/cli.rb:13:in
`run'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsfree-client-0.5.0/bin/vpsfreectl:4:in
`<top (required)>'
from /usr/local/bin/vpsfreectl:23:in `load'
from /usr/local/bin/vpsfreectl:23:in `<main>'
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/snapshot_send.rb:92:in
`readpartial': unexpected end of file (Zlib::GzipFile::Error)
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/snapshot_send.rb:92:in
`do_exec'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:278:in
`block in transfer'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:448:in
`call'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:448:in
`block in run_piped'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:445:in
`fork'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:445:in
`run_piped'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:277:in
`transfer'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:235:in
`exec'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_vps.rb:22:in
`exec'
from
/usr/local/lib/ruby/gems/2.1/gems/haveapi-client-0.5.2/lib/haveapi/cli/cli.rb:73:in
`initialize'
from
/usr/local/lib/ruby/gems/2.1/gems/haveapi-client-0.5.2/lib/haveapi/cli/cli.rb:13:in
`new'
[root at doma /data/backup]#
b/ruby/gems/2.1/gems/haveapi-client-0.5.2/lib/haveapi/cli/cli.rb:13:in `run'
[root at doma /data/backup]#
b/ruby/gems/2.1/gems/vpsfree-client-0.5.0/bin/vpsfreectl:4:in `<top
(required)>'
[root at doma /data/backup]# n/vpsfreectl:23:in `load'
[root at doma /data/backup]# n/vpsfreectl:23:in `<main>'
[root at doma /data/backup]# stream: invalid backup stream
[root at doma /data/backup]#
[root at doma /data/backup]# vpsfreectl backup vps 2959 sroot/data/backup
[root at doma /data/backup]#
[root at doma /data/backup]#
[root at doma /data/backup]#
[root at doma /data/backup]# receive of @2016-03-22T00:00:12 -
@2016-03-23T00:00:19 to sroot/data/backup/0
[root at doma /data/backup]#
.1/gems/haveapi-client-0.5.2/lib/haveapi/client/resource.rb:95:in `block
(2 levels) in define_action': create failed: this snapshot has already
been made available for download (HaveAPI::[root at doma /data/backup]#
[root at doma /data/backup]#
b/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/base_download.rb:16:in
`find_or_create_dl'
[root at doma /data/backup]#
b/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/snapshot_send.rb:58:in
`do_exec'
[root at doma /data/backup]#
b/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:278:in
`block in transfer'
[root at doma /data/backup]#
b/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:448:in
`call'
[root at doma /data/backup]#
b/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:448:in
`block in run_piped'
[root at doma /data/backup]#
b/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:445:in
`fork'
[root at doma /data/backup]#
b/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:445:in
`run_piped'
[root at doma /data/backup]#
b/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:277:in
`transfer'
[root at doma /data/backup]#
b/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:235:in
`exec'
[root at doma /data/backup]#
b/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_vps.rb:22:in
`exec'
[root at doma /data/backup]#
b/ruby/gems/2.1/gems/haveapi-client-0.5.2/lib/haveapi/cli/cli.rb:73:in
`initialize'
[root at doma /data/backup]#
b/ruby/gems/2.1/gems/haveapi-client-0.5.2/lib/haveapi/cli/cli.rb:13:in `new'
[root at doma /data/backup]#
b/ruby/gems/2.1/gems/haveapi-client-0.5.2/lib/haveapi/cli/cli.rb:13:in `run'
[root at doma /data/backup]#
b/ruby/gems/2.1/gems/vpsfree-client-0.5.0/bin/vpsfreectl:4:in `<top
(required)>'
[root at doma /data/backup]# n/vpsfreectl:23:in `load'
[root at doma /data/backup]# n/vpsfreectl:23:in `<main>'
[root at doma /data/backup]# read from stream
[root at doma /data/backup]#
[root at doma /data/backup]# mc
[root at doma /data/backup]#
[root at doma /data/backup]#
[root at doma /data/backup]#
[root at doma /data/backup]#
[root at doma /data/backup]#
[root at doma /data/backup]#
[root at doma /data/backup]#
[root at doma /data/backup]#
[root at doma /data/backup]# vpsfreectl backup vps 2959 sroot/data/backup
Will download 1 snapshots:
@2016-03-23T00:00:19
Performing an incremental receive of @2016-03-22T00:00:12 -
@2016-03-23T00:00:19 to sroot/data/backup/0
/usr/local/lib/ruby/gems/2.1/gems/haveapi-client-0.5.2/lib/haveapi/client/resource.rb:95:in
`block (2 levels) in define_action': create failed: this snapshot has
already been made available for download (HaveAPI::Client::ActionFailed)
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/base_download.rb:16:in
`find_or_create_dl'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/snapshot_send.rb:58:in
`do_exec'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:278:in
`block in transfer'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:448:in
`call'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:448:in
`block in run_piped'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:445:in
`fork'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:445:in
`run_piped'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:277:in
`transfer'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_dataset.rb:235:in
`exec'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/backup_vps.rb:22:in
`exec'
from
/usr/local/lib/ruby/gems/2.1/gems/haveapi-client-0.5.2/lib/haveapi/cli/cli.rb:73:in
`initialize'
from
/usr/local/lib/ruby/gems/2.1/gems/haveapi-client-0.5.2/lib/haveapi/cli/cli.rb:13:in
`new'
from
/usr/local/lib/ruby/gems/2.1/gems/haveapi-client-0.5.2/lib/haveapi/cli/cli.rb:13:in
`run'
from
/usr/local/lib/ruby/gems/2.1/gems/vpsfree-client-0.5.0/bin/vpsfreectl:4:in
`<top (required)>'
from /usr/local/bin/vpsfreectl:23:in `load'
from /usr/local/bin/vpsfreectl:23:in `<main>'
cannot receive: failed to read from stream
Receive failed
[root at doma /data/backup]#
Uložilo mi spolu 7 snapshotov:
[root at doma /data/backup]# ls -la 0/.zfs/snapshot/
total 7
dr-xr-xr-x 15 root wheel 15 23 mar 15:19 .
dr-xr-xr-x 4 root wheel 4 3 máj 2014 ..
drwxr-xr-x 3 root wheel 3 3 máj 2014 2016-03-02T01:00:35
drwxr-xr-x 3 root wheel 3 3 máj 2014 2016-03-03T01:00:28
drwxr-xr-x 3 root wheel 3 3 máj 2014 2016-03-04T01:00:32
drwxr-xr-x 3 root wheel 3 3 máj 2014 2016-03-05T01:00:27
drwxr-xr-x 3 root wheel 3 3 máj 2014 2016-03-06T01:00:34
drwxr-xr-x 3 root wheel 3 3 máj 2014 2016-03-07T01:00:16
drwxr-xr-x 3 root wheel 3 3 máj 2014 2016-03-08T01:00:16
drwxr-xr-x 3 root wheel 3 3 máj 2014 2016-03-17T01:00:13
drwxr-xr-x 3 root wheel 3 3 máj 2014 2016-03-18T01:00:29
drwxr-xr-x 3 root wheel 3 3 máj 2014 2016-03-19T01:00:22
drwxr-xr-x 3 root wheel 3 3 máj 2014 2016-03-20T01:00:15
drwxr-xr-x 3 root wheel 3 3 máj 2014 2016-03-21T00:00:21
drwxr-xr-x 3 root wheel 3 3 máj 2014 2016-03-22T00:00:12
[root at doma /data/backup]# date
st 23. marec 2016 15:45:26 CET
[root at doma /data/backup]#
Prečo majú dátum 3.5.2014? Dátum na serveri mám v poriadku. Keď príkaz
teraz zopakujem, skončí chybou.
Vlado.
Dňa 23.03.2016 o 13:26 Vladimír Drgoňa napísal(a):
> Ahoj,
>
> už to ide, akurát u mňa to bolo /usr/local/etc/ssl/cert.pem.
> Dáta sťahuje slušnou rýchlosťou, asi 7000kB/s.
>
> Vlado.
>
> Dňa 23.03.2016 o 12:59 René Klačan napísal(a):
>> Skus
>> toto https://github.com/google/google-api-ruby-client/issues/253#issuecomment-169957139
>>
>> 2016-03-23 12:53 GMT+01:00 Vladimír Drgoňa <vlado at drgona.eu
>> <mailto:vlado at drgona.eu>>:
>>
>> Ahoj,
>>
>> skúšal som všeličo. Aj dnes vytvorený čistý jail, jedine som tam
>> nainštaloval ruby, a výsledok som dostal rovnaký ako minule:
>>
>> root at VPSFREE:~ # vpsfreectl snapshot download
>> VPS #2959
>> (1) @2016-03-02T00:00:34Z
>> (2) @2016-03-03T00:00:26Z
>> (3) @2016-03-04T00:00:27Z
>> (4) @2016-03-05T00:00:26Z
>> (5) @2016-03-06T00:00:32Z
>> (6) @2016-03-07T00:00:12Z
>> (7) @2016-03-08T00:00:13Z
>> (8) @2016-03-17T00:00:10Z
>> (9) @2016-03-18T00:00:27Z
>> (10) @2016-03-19T00:00:20Z
>> (11) @2016-03-20T00:00:14Z
>> (12) @2016-03-21T00:00:21Z
>> (13) @2016-03-22T00:00:12Z
>> (14) @2016-03-23T00:00:19Z
>> Pick a snapshot for download: 14
>> Reusing existing SnapshotDownload (id=323)
>> Downloading to 2959__2016-03-23T00-00-19.tar.gz
>> /usr/local/lib/ruby/2.1/net/http.rb:923:in `connect': SSL_connect
>> returned=1 errno=0 state=error: certificate verify failed
>> (OpenSSL::SSL::SSLError)--=---=---=---=---=---=---=---=---=---=---=---=---=---=--]
>> 0 kB/s
>> from /usr/local/lib/ruby/2.1/net/http.rb:923:in `block in
>> connect'
>> from /usr/local/lib/ruby/2.1/timeout.rb:75:in `timeout'
>> from /usr/local/lib/ruby/2.1/net/http.rb:923:in `connect'
>> from /usr/local/lib/ruby/2.1/net/http.rb:863:in `do_start'
>> from /usr/local/lib/ruby/2.1/net/http.rb:852:in `start'
>> from /usr/local/lib/ruby/2.1/net/http.rb:583:in `start'
>> from
>> /usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/stream_downloader.rb:65:in
>> `initialize'
>> from
>> /usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/stream_downloader.rb:11:in
>> `new'
>> from
>> /usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/stream_downloader.rb:11:in
>> `download'
>> from
>> /usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/snapshot_download.rb:103:in
>> `do_exec'
>> from
>> /usr/local/lib/ruby/gems/2.1/gems/vpsadmin-client-2.3.1/lib/vpsadmin/cli/commands/snapshot_download.rb:69:in
>> `exec'
>> from
>> /usr/local/lib/ruby/gems/2.1/gems/haveapi-client-0.5.2/lib/haveapi/cli/cli.rb:73:in
>> `initialize'
>> from
>> /usr/local/lib/ruby/gems/2.1/gems/haveapi-client-0.5.2/lib/haveapi/cli/cli.rb:13:in
>> `new'
>> from
>> /usr/local/lib/ruby/gems/2.1/gems/haveapi-client-0.5.2/lib/haveapi/cli/cli.rb:13:in
>> `run'
>> from
>> /usr/local/lib/ruby/gems/2.1/gems/vpsfree-client-0.5.0/bin/vpsfreectl:4:in
>> `<top (required)>'
>> from /usr/local/bin/vpsfreectl:23:in `load'
>> from /usr/local/bin/vpsfreectl:23:in `<main>'
>> root at VPSFREE:~ #
>>
>> Samozrejme
>> V akej forme si skúšal FreeBSD? Ak virtuál, mohol by si ho niekde
>> nahrať, trebárs ako TAR, prípadne rovno OVA na moju VPS?
>> Samozrejme bez
>> tokenu a podobných súkromných údajov a s nejakým jednoduchým heslom.
>> Večer by som si ho vyskúšal na desktope, overil by som si či mám
>> problém
>> s routrom, providerom alebo nejak rozhasený server, pretože inak mi
>> všetko na ňom funguje normálne.
>>
>> Vlado.
>>
>>
>> Dňa 23.03.2016 o 10:16 Jakub Skokan napísal(a):
>> > On 03/21/2016 09:57 AM, Jakub Skokan wrote:
>> >> PS: mohl by to někdo vyzkoušet na BSD? Mělo by to fungovat nad
>> jakýmkoli
>> >> systémem se ZFS a Ruby >= 2.0.
>> > Pushnul jsem na rubygems vpsadmin-client-2.3.1, ktery jiz bezi na
>> > FreeBSD. Kdyz uz jsem mel to FreeBSD pustene, rovnou jsem umoznil
>> > pouziti delegace prav k datasetum [1] (coz na ZFS on Linux neni
>> > implementovane), takze ke stahovani zaloh uz program nemusi
>> bezet pod
>> > rootem a nepotrebuje ani sudo.
>> >
>> > [1]
>> >
>> https://kb.vpsfree.cz/navody/vps/datasety#stahovani_zaloh_pod_obycejnym_uzivatelem_s_vyuzitim_delegace_prav
>> >
>> > Jakub
>> > _______________________________________________
>> > Community-list mailing list
>> > Community-list at lists.vpsfree.cz
>> <mailto:Community-list at lists.vpsfree.cz>
>> > http://lists.vpsfree.cz/listinfo/community-list
>>
>> _______________________________________________
>> Community-list mailing list
>> Community-list at lists.vpsfree.cz
>> <mailto:Community-list at lists.vpsfree.cz>
>> http://lists.vpsfree.cz/listinfo/community-list
>>
>>
>>
>>
>> _______________________________________________
>> Community-list mailing list
>> Community-list at lists.vpsfree.cz
>> http://lists.vpsfree.cz/listinfo/community-list
>
>
>
> _______________________________________________
> Community-list mailing list
> Community-list at lists.vpsfree.cz
> http://lists.vpsfree.cz/listinfo/community-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vpsfree.cz/pipermail/community-list/attachments/20160323/aeefd6f3/attachment-0002.html>
More information about the Community-list
mailing list