__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

��g6����SrSSKJrJr SSKrSSKrSSKrSSKrSSKrSSK	J
r
 SSK	Jr SSK	Jr Sq
Sq"SS\R5r"S	S
\5rSr"SS
\R(5rg)a�
Functions to compute progress of compress & upload files
The heuristics try to infer the ratio between the amount of data collected
by the deltas and the total size of the changing files. It also infers the
compression and encryption ration of the raw deltas before sending them to
the backend.
With the inferred ratios, the heuristics estimate the percentage of completion
and the time left to transfer all the (yet unknown) amount of data to send.
This is a forecast based on gathered evidence.
�)�datetime�	timedeltaN)�config)�log)�utilc�d^�\rSrSrSr\S5rSrSU4SjjrSr	Sr
SrU4S	jrS
r
U=r$)�Snapshot�5z�
A convenience class for storing snapshots in a space/timing efficient manner
Stores up to 10 consecutive progress snapshots, one for each volume
c���[5n[Rbn[RRS:�aP[	S[R
R-S5n[R"U5nUR5 U$U$![a[n[R"S[R"U53[RR 5 [5nSnAU$SnAff=f)z)
De-serializes cached data it if present
N��%s/progress�rbz@Warning, cannot read stored progress info from previous backup: )r	r�restart�	start_vol�open�archive_dir_path�name�pickle�load�close�	Exceptionr�Warnr�uexc�WarningCode�cannot_stat)�snapshot�
progressfd�es   �4/usr/lib/python3/dist-packages/duplicity/progress.py�
unmarshall�Snapshot.unmarshall;s���
�:���>�>�%�&�.�.�*B�*B�a�*G�	
&�!�.�6�3J�3J�3O�3O�"O�QU�V�
�!�;�;�z�2��� � �"���x����
&����V�W[�W`�W`�ab�Wc�Vd�e��O�O�/�/��$�:�����
&�s�A
B�
C1�AC,�,C1c��[S[RR-S5n[R
"X5 UR
5 g)z
Serializes object to cache
r
zwb+N)rrrrr�dumpr)�selfrs  r�marshall�Snapshot.marshallPs9���.�6�+B�+B�+G�+G�G��O�
����D�%�����c�<>�Uc/n[TU]X5 SUlg�Nr)�super�__init__�last_vol)r$�iterable�maxlen�	__class__s   �rr+�Snapshot.__init__Xs"������H�
����*���
r'c	��[U5nUS::agU[S[X!-UR-
S-
US-
55$)Nr�r)�len�max�minr,)r$�volume�nitemss   r�get_snapshot�Snapshot.get_snapshot^sB���T����Q�;���C��3�v�����>��B�F�Q�J�O�P�Q�Qr'c�2�URU5 Xlg�N)�appendr,)r$r6�
snapshot_datas   r�
push_snapshot�Snapshot.push_snapshotds�����M�"��
r'c�"�UR5$r;)�popleft�r$s r�pop_snapshot�Snapshot.pop_snapshoths���|�|�~�r'c�0>�[TU]5 SUlgr))r*�clearr,�r$r/s �rrF�Snapshot.clearks���
��
����
r')r,)N�
)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�staticmethodr r%r+r8r>rCrF�__static_attributes__�
__classcell__�r/s@rr	r	5s@����
����(��R����r'r	c�D�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rg)�ProgressTracker�pc�D�SUlSUlSUlSUlSUlSUlSUlSUlSUlSUl	SUl
SUl[5Ul
SUl[R "5UlSUlSUlSUlSUlg)Nrr2F)�total_stats�nsteps�
start_time�change_mean_ratio�change_r_estimation�progress_estimation�time_estimation�total_bytecount�last_total_bytecount�last_bytecount�stall_last_time�	last_timer�elapsed_sum�speed�sys_collections�deque�	transfers�is_full�current_estimation�prev_estimation�	prev_datarBs rr+�ProgressTracker.__init__qs������������!$���#&�� �#&�� � ��� ���$%��!����#������$�;�����
�(�.�.�0������"%���"�����r'c��URb@URRXR5 URR5 gg)z�
Snapshots the current progress status for each volume into the disk cache
If backup is interrupted, next restart will deserialize the data and try start
progress from the snapshot
N)rkr>r\r%�r$r6s  r�snapshot_progress�!ProgressTracker.snapshot_progress�s;���>�>�%��N�N�(�(��1I�1I�J��N�N�#�#�%�&r'c��URSL$)z�
Returns true if the progress computation is on and duplicity has not
yet started the first dry-run pass to collect some information
N)rWrBs r�has_collected_evidence�&ProgressTracker.has_collected_evidence�s��
���t�+�+r'c���[R(aUR5(dg[R"5nUR
cXlURbXR-
nO
[5nXlURcXlXR-
R[SS[R-5:�a][R"SUR-URUR XR
-
RUR"S5 gU=R$S-
slSSKJn UR*R,UR*R.-nUR0R,UR0R.-nUS:XdUR*R2S:XagURnUR4(a([7UR 5[7U5-UlGO�[7UR 5[7UR*R25-nXpR:-
nU=R:U[7UR$5--
slU=R<X�UR:-
--
sl[>R@"[>RB"UR<[7UR$5-55n	[7U5[7U5-UR:S	U	--
S
UR8-
-UR:S	U	--UR8---UlUR8S
:�a_[7U5[7U5-UR:SU	--
S
UR8-
-UR:SU	--UR8---UlUR8S
:�a)UR:[7U5-[7U5-Ul[S[EURFS
URF-
UR8--S
55UlU=RHU-
sl$S
n
URS:�aS
UR-
UR-n
[KU
[7URHRM55-5UlURU:aX`lURM5S:�aUURNRQ[7UR URR-
5[7URM55-5 UR Ul)[UURN5S:�aURNRW5 SUlURNHnSU-SUR"--UlM [R"SUR-URUR XR
-
RUR"S5 g)zF
Aproximative and evolving method of computing the progress of upload
N��gY@Trr)�diffdirgq=
ףp�?g�?g��Q��?r2�G�z��?�g333333�?gffffff�?F),r�progressrrr�nowrYrbrra�secondsr4�
progress_rater�TransferProgressr\r]r^rdrX�	duplicityrw�stats�NewFileSize�ChangedFileSizerW�RawDeltaSizerh�floatrirZr[�math�sqrt�fabsr5rjrc�int�
total_secondsrgr<r_r3rA)r$�current_time�elapsedrw�changes�
total_changes�last_progress_estimation�change_ratio�change_delta�change_sigma�
projection�xs            r�log_upload_progress�#ProgressTracker.log_upload_progress�s�����d�&A�&A�&C�&C���|�|�~���?�?�"�*�O��>�>�%�"�^�^�3�G��k�G�%�����'�#/� ��/�/�/�8�8�3�q�!�f�FZ�FZ�BZ�;[�[�� � ���0�0�0��$�$��$�$����/�8�8��
�
��

�
����q���		�	&��-�-�+�+�g�m�m�.K�.K�K���(�(�4�4�t�7G�7G�7W�7W�W�
��A�����!;�!;�q�!@��$(�#;�#;� ��<�<�&+�D�,@�,@�&A�E�-�DX�&X�D�#�!��!5�!5�6��w�}�}�?Y�?Y�9Z�Z�L�'�*@�*@�@�L��"�"�l�U�4�;�;�5G�&G�G�"��$�$��t�G]�G]�8]�(^�^�$��9�9�T�Y�Y�t�/G�/G�%�PT�P[�P[�J\�/\�%]�^�L�
��g���
�&�'��+�+�d�\�.A�A�c�D�Lc�Lc�Fc�d��-�-��|�0C�C�t�G^�G^�^�_��
�#�
��&�&��,��'�N��M�*�+��/�/�$��2E�E�#�PT�Pg�Pg�Jg�h��1�1�D�<�4G�G�4�Kb�Kb�b�c���'�
��&�&��,�*.�*@�*@�5��>�*Q�TY�Zg�Th�*h��'�	�
$'����$�$��d�.B�.B�(B�d�F]�F]�']�]��
�$
�� �	�	
���G�#���
��#�#�a�'��� 8� 8�8�D�<T�<T�T�J�"�:��d�6F�6F�6T�6T�6V�0W�#W�X����#�#�&>�>�'?�$�	�� � �"�Q�&��N�N�!�!��d�*�*�T�-F�-F�F�G�%�PW�Pe�Pe�Pg�Jh�h�
�%)�$8�$8��!��t�~�~���#��N�N�"�"�$���
����A��q��3����#3�3�D�J� �	����D�,�,�,�� � �� � �
�O�O�
+�4�4��J�J��
	
r'c��[XR-
S5nU=R[U5-
slXlUS:�a[R
"5Ulgg)z�
Annotate the number of bytes that have been added/changed since last time
this function was called.
bytecount param will show the number of bytes since the start of the current
volume and for the current volume
rN)r4r`r^r�rr{ra)r$�	bytecount�changings   r�annotate_written_bytes�&ProgressTracker.annotate_written_bytes.sN���y�#6�#6�6��:������H�
�-��'���a�<�#+�<�<�>�D� �r'c��XlX lg)zu
Stores the collected statistics from a first-pass dry-run, to use this
information later so as to estimate progress
N)rWrh)r$r�rhs   r�set_evidence�ProgressTracker.set_evidence;s��
!���r'c��[R5UlURRU5Ul[S[
URS55Ulg)Nr2rx)r	r rkr8rjr4r5r\rns  r�set_start_volume� ProgressTracker.set_start_volumeCsE��!�,�,�.���#�~�~�:�:�6�B���#&�s�C��0D�0D�d�,K�#L�� r'c�Z�[R"5UR-
R$)zD
Elapsed seconds since the first call to log_upload_progress method
)rr{rYr|rBs r�total_elapsed_seconds�%ProgressTracker.total_elapsed_secondsHs���������0�9�9�9r')rZr[rircrhr`rbr_rXrkrjr\rdrarYr]r^rWrgN)
rJrKrLrMr+rorrr�r�r�r�r�rP�r'rrTrTps-���*&�,�U
�n2��M�
:r'rTc�N�[b[b[RU5 ggg)z�
Method to call tracker.annotate_written_bytes from outside
the class, and to offer the "function(long, long)" signature
which is handy to pass as callback
N)�progress_thread�trackerr�)r��
totalbytess  r�report_transferr�Os%���"�w�':��&�&�y�1�(;�"r'c�2^�\rSrSrSrU4SjrSrSrU=r$)�LogProgressThreadi[zS
Background thread that reports progress to the log,
every --progress-rate seconds
c�>>�[TU]5 SUlSUlg)NTF)r*r+�daemon�finishedrGs �rr+�LogProgressThread.__init__as���
���������
r'c�J�[R(d�[R(ax[R	5(a^UR
(dL[R
5 [R"[R5 UR
(dMKgggggr;)
r�dry_runrzr�rrr�r��time�sleepr}rBs r�run�LogProgressThread.runfsW���~�~�&�/�/�g�6T�6T�6V�6V��m�m��+�+�-��
�
�6�/�/�0��m�m�m�7W�/�~r')r�r�)	rJrKrLrMrNr+r�rPrQrRs@rr�r�[s����
�
1�1r'r�)rNrr�collectionsrer�r�	threadingr�rrrrr�r�rfr	�objectrTr��Threadr�r�r'r�<module>r�sl��0	��&��
������
����8��$�$�8�v\:�f�\:�~	2�1�	�(�(�1r'

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 398 B 0644
__main__.cpython-313.pyc File 4.74 KB 0644
argparse311.cpython-313.pyc File 98.99 KB 0644
backend.cpython-313.pyc File 32.15 KB 0644
backend_pool.cpython-313.pyc File 18.72 KB 0644
cached_ops.cpython-313.pyc File 1.09 KB 0644
cli_data.cpython-313.pyc File 32.01 KB 0644
cli_main.cpython-313.pyc File 14.13 KB 0644
cli_util.cpython-313.pyc File 22.31 KB 0644
config.cpython-313.pyc File 5.74 KB 0644
diffdir.cpython-313.pyc File 31.95 KB 0644
dup_collections.cpython-313.pyc File 63.51 KB 0644
dup_main.cpython-313.pyc File 78.6 KB 0644
dup_tarfile.cpython-313.pyc File 432 B 0644
dup_temp.cpython-313.pyc File 12.87 KB 0644
dup_time.cpython-313.pyc File 11.17 KB 0644
errors.cpython-313.pyc File 3.53 KB 0644
file_naming.cpython-313.pyc File 16.93 KB 0644
filechunkio.cpython-313.pyc File 3.83 KB 0644
globmatch.cpython-313.pyc File 6.01 KB 0644
gpg.cpython-313.pyc File 20.98 KB 0644
gpginterface.cpython-313.pyc File 25.69 KB 0644
lazy.cpython-313.pyc File 17 KB 0644
librsync.cpython-313.pyc File 11.48 KB 0644
log.cpython-313.pyc File 19.18 KB 0644
manifest.cpython-313.pyc File 23.66 KB 0644
patchdir.cpython-313.pyc File 27.63 KB 0644
path.cpython-313.pyc File 43.08 KB 0644
progress.cpython-313.pyc File 14.45 KB 0644
robust.cpython-313.pyc File 1.91 KB 0644
selection.cpython-313.pyc File 31.35 KB 0644
statistics.cpython-313.pyc File 18.78 KB 0644
tempdir.cpython-313.pyc File 12.04 KB 0644
util.cpython-313.pyc File 16.51 KB 0644
Filemanager