Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] auto_backup: Empty dump using sftp backup option (#428 issue) #432

Merged
merged 1 commit into from
May 25, 2016
Merged

[FIX] auto_backup: Empty dump using sftp backup option (#428 issue) #432

merged 1 commit into from
May 25, 2016

Conversation

jabibi
Copy link
Contributor

@jabibi jabibi commented May 20, 2016

Fix for issue: [8.0][auto_backup] Empty dump using sftp backup option #428

@coveralls
Copy link

coveralls commented May 20, 2016

Coverage Status

Coverage increased (+0.004%) to 57.269% when pulling bccb9e3 on jabibi:fix_empty_dump_using_sftp into 72eef58 on OCA:8.0.

@Daniel-CA
Copy link

Great @jabibi , let me check and I will give my thumbs up

@Daniel-CA
Copy link

👍 works fine now.

@moylop260
Copy link
Contributor

👍

@jabibi
Copy link
Contributor Author

jabibi commented May 25, 2016

can be merged?

@pedrobaeza pedrobaeza merged commit 655ac54 into OCA:8.0 May 25, 2016
@jabibi jabibi deleted the fix_empty_dump_using_sftp branch May 25, 2016 08:27
@jabibi
Copy link
Contributor Author

jabibi commented May 25, 2016

Thanks @pedrobaeza

lasley pushed a commit to LasLabs/server-tools that referenced this pull request Aug 23, 2016
max3903 pushed a commit that referenced this pull request Nov 18, 2016
* Update english pot file

Added all the new fields and sentences. This will be the template for
translations.

* Dutch translations

Full translation of the module to Dutch

* Chinese translations

Add Chinese translations to the module. Written by talway.

* Changes chinese translation

Changed some translations

* Full German translations

Thanks to Martin Schmid!

* Typo fix

could'nt > couldn't

* Flemish translations

Flemish translations are identical to Dutch.

* Open FTP session on the last moment possible

Used to open  fp = open(file_path,'wb') a few lines before it was needed. This shouldn't be too much of a problem but opening and closing it right after eachother keeps the session open for less time and there are less chances on failure.

* Porting module to OCA 8.0

* [FIX] module

* [FIX] bug logger --> _logger call
[FIX] Flake8
[RM] useless files

* [FIX] Readme.rst

* [FIX] defaults value

* [FIX] rebased commit

* [RM] description index.html

* [RF] porting to new api
[FIX] schedule_backup method
[IMP] IT translation
[IMP] tests

* [FIX] test

* [FIX] flake8

* [IMP] deps in travis.yml
[FIX] flake8

* [FIX] flake8 and pylint

* [FIX] name of file

* [FIX] autoremove method
[FIX] Contributors

* [FIX] mail.tempale seems not work in cron task, replaced  with direct call of mail.mail

* [FIX] Readme

* [FIX] review remarks

* [FIX] handled ssl hosts
[FIX] Flake8

* [FIX] handled ssl hosts
[FIX] Flake8

* [FIX]  fixed, last review remarks

* [FIX] travis lint check

* [FIX] backup only local db , beacause xmlrpc call of dump cause memory leak

* [RM] useless field

* [FIX] check_dd method
[ADD] test case improved

* [auto_backup] Refactor.

- Follow template README.
- Remove HTML README.
- Move models to models folder.
- Model and view file names follow guidelines.
- Unused methods cleanup.
- Remove unneeded `.pot` file.
- Fix permissons.
- Follow PEP8 in names everywhere.
- Set more descriptive field names.
- Disable backups for other databases, for security.
- Remove db name from generated file, for easier cleanup.
- EAFP logic everywhere.
- More descriptive name.
- Data files moved to YAML, with cleaner ir.cron record creation.
- Add permissions for db.backup model.
- Icons.
- Update tests with new format.
- Storage method is a selectable, for easier extensibility.
- Instead of custom mailing, it just has a mail thread where you can subscribe.
- Should fix almost all comments in #203.

* Update english pot file

Added all the new fields and sentences. This will be the template for
translations.

* Dutch translations

Full translation of the module to Dutch

* Chinese translations

Add Chinese translations to the module. Written by talway.

* Changes chinese translation

Changed some translations

* Full German translations

Thanks to Martin Schmid!

* Typo fix

could'nt > couldn't

* Flemish translations

Flemish translations are identical to Dutch.

* Open FTP session on the last moment possible

Used to open  fp = open(file_path,'wb') a few lines before it was needed. This shouldn't be too much of a problem but opening and closing it right after eachother keeps the session open for less time and there are less chances on failure.

* Porting module to OCA 8.0

* [FIX] module

* [FIX] bug logger --> _logger call
[FIX] Flake8
[RM] useless files

* [FIX] Readme.rst

* [FIX] defaults value

* [FIX] rebased commit

* [RM] description index.html

* [RF] porting to new api
[FIX] schedule_backup method
[IMP] IT translation
[IMP] tests

* [FIX] test

* [FIX] flake8

* [IMP] deps in travis.yml
[FIX] flake8

* [FIX] flake8 and pylint

* [FIX] name of file

* [FIX] autoremove method
[FIX] Contributors

* [FIX] mail.tempale seems not work in cron task, replaced  with direct call of mail.mail

* [FIX] Readme

* [FIX] review remarks

* [FIX] handled ssl hosts
[FIX] Flake8

* [FIX] handled ssl hosts
[FIX] Flake8

* [FIX]  fixed, last review remarks

* [FIX] travis lint check

* [FIX] backup only local db , beacause xmlrpc call of dump cause memory leak

* [RM] useless field

* [FIX] check_dd method
[ADD] test case improved

* [auto_backup] Refactor.

- Follow template README.
- Remove HTML README.
- Move models to models folder.
- Model and view file names follow guidelines.
- Unused methods cleanup.
- Remove unneeded `.pot` file.
- Fix permissons.
- Follow PEP8 in names everywhere.
- Set more descriptive field names.
- Disable backups for other databases, for security.
- Remove db name from generated file, for easier cleanup.
- EAFP logic everywhere.
- More descriptive name.
- Data files moved to YAML, with cleaner ir.cron record creation.
- Add permissions for db.backup model.
- Icons.
- Update tests with new format.
- Storage method is a selectable, for easier extensibility.
- Instead of custom mailing, it just has a mail thread where you can subscribe.
- Should fix almost all comments in #203.

* Reduce headers.

This respects the upstream license choice (GPL/AGPL) but reduces
verbosity.

It would be ideal to have everything under AGPL though.

* Fix view format.

* Add shortcut to execute backups from the "More" menu.

* Avoid duplicated backups.

* Make sure you don't backup inside the filestore folder.

The filestore is saved in the backup, so if you save the backup in the
filestore, you'd end up with a huge backup that includes itself and the
universe may collapse.

* [FIX] This was removing all databases.

* FIX License type

* OCA Transbot updated translations from Transifex

* OCA Transbot updated translations from Transifex

* OCA Transbot updated translations from Transifex

* [FIX] auto_backup: bad reference to field sftp_private_key (#423)

Bump module version to 8.0.1.0.1

* [FIX] auto_backup: Empty dump using sftp backup option (#432)

* [FIX] logger db_backup for pysftp (#419)

* OCA Transbot updated translations from Transifex

* OCA Transbot updated translations from Transifex

* OCA Transbot updated translations from Transifex

* OCA Transbot updated translations from Transifex

* [FIX] remove en.po that was erroneously created by transbot

* [MIG] auto_backup: Migrate to v9
* Add self.ensure_ones
* Add test coverage

* [ADD] auto_backup: Test coverage
* compute_name
* check_folder
* action_sftp_test_connection
* action_backup - sftp
* action_backup_all
* sftp_connection
* filename
lasley added a commit to LasLabs/server-tools that referenced this pull request Nov 18, 2016
* Update english pot file

Added all the new fields and sentences. This will be the template for
translations.

* Dutch translations

Full translation of the module to Dutch

* Chinese translations

Add Chinese translations to the module. Written by talway.

* Changes chinese translation

Changed some translations

* Full German translations

Thanks to Martin Schmid!

* Typo fix

could'nt > couldn't

* Flemish translations

Flemish translations are identical to Dutch.

* Open FTP session on the last moment possible

Used to open  fp = open(file_path,'wb') a few lines before it was needed. This shouldn't be too much of a problem but opening and closing it right after eachother keeps the session open for less time and there are less chances on failure.

* Porting module to OCA 8.0

* [FIX] module

* [FIX] bug logger --> _logger call
[FIX] Flake8
[RM] useless files

* [FIX] Readme.rst

* [FIX] defaults value

* [FIX] rebased commit

* [RM] description index.html

* [RF] porting to new api
[FIX] schedule_backup method
[IMP] IT translation
[IMP] tests

* [FIX] test

* [FIX] flake8

* [IMP] deps in travis.yml
[FIX] flake8

* [FIX] flake8 and pylint

* [FIX] name of file

* [FIX] autoremove method
[FIX] Contributors

* [FIX] mail.tempale seems not work in cron task, replaced  with direct call of mail.mail

* [FIX] Readme

* [FIX] review remarks

* [FIX] handled ssl hosts
[FIX] Flake8

* [FIX] handled ssl hosts
[FIX] Flake8

* [FIX]  fixed, last review remarks

* [FIX] travis lint check

* [FIX] backup only local db , beacause xmlrpc call of dump cause memory leak

* [RM] useless field

* [FIX] check_dd method
[ADD] test case improved

* [auto_backup] Refactor.

- Follow template README.
- Remove HTML README.
- Move models to models folder.
- Model and view file names follow guidelines.
- Unused methods cleanup.
- Remove unneeded `.pot` file.
- Fix permissons.
- Follow PEP8 in names everywhere.
- Set more descriptive field names.
- Disable backups for other databases, for security.
- Remove db name from generated file, for easier cleanup.
- EAFP logic everywhere.
- More descriptive name.
- Data files moved to YAML, with cleaner ir.cron record creation.
- Add permissions for db.backup model.
- Icons.
- Update tests with new format.
- Storage method is a selectable, for easier extensibility.
- Instead of custom mailing, it just has a mail thread where you can subscribe.
- Should fix almost all comments in OCA#203.

* Update english pot file

Added all the new fields and sentences. This will be the template for
translations.

* Dutch translations

Full translation of the module to Dutch

* Chinese translations

Add Chinese translations to the module. Written by talway.

* Changes chinese translation

Changed some translations

* Full German translations

Thanks to Martin Schmid!

* Typo fix

could'nt > couldn't

* Flemish translations

Flemish translations are identical to Dutch.

* Open FTP session on the last moment possible

Used to open  fp = open(file_path,'wb') a few lines before it was needed. This shouldn't be too much of a problem but opening and closing it right after eachother keeps the session open for less time and there are less chances on failure.

* Porting module to OCA 8.0

* [FIX] module

* [FIX] bug logger --> _logger call
[FIX] Flake8
[RM] useless files

* [FIX] Readme.rst

* [FIX] defaults value

* [FIX] rebased commit

* [RM] description index.html

* [RF] porting to new api
[FIX] schedule_backup method
[IMP] IT translation
[IMP] tests

* [FIX] test

* [FIX] flake8

* [IMP] deps in travis.yml
[FIX] flake8

* [FIX] flake8 and pylint

* [FIX] name of file

* [FIX] autoremove method
[FIX] Contributors

* [FIX] mail.tempale seems not work in cron task, replaced  with direct call of mail.mail

* [FIX] Readme

* [FIX] review remarks

* [FIX] handled ssl hosts
[FIX] Flake8

* [FIX] handled ssl hosts
[FIX] Flake8

* [FIX]  fixed, last review remarks

* [FIX] travis lint check

* [FIX] backup only local db , beacause xmlrpc call of dump cause memory leak

* [RM] useless field

* [FIX] check_dd method
[ADD] test case improved

* [auto_backup] Refactor.

- Follow template README.
- Remove HTML README.
- Move models to models folder.
- Model and view file names follow guidelines.
- Unused methods cleanup.
- Remove unneeded `.pot` file.
- Fix permissons.
- Follow PEP8 in names everywhere.
- Set more descriptive field names.
- Disable backups for other databases, for security.
- Remove db name from generated file, for easier cleanup.
- EAFP logic everywhere.
- More descriptive name.
- Data files moved to YAML, with cleaner ir.cron record creation.
- Add permissions for db.backup model.
- Icons.
- Update tests with new format.
- Storage method is a selectable, for easier extensibility.
- Instead of custom mailing, it just has a mail thread where you can subscribe.
- Should fix almost all comments in OCA#203.

* Reduce headers.

This respects the upstream license choice (GPL/AGPL) but reduces
verbosity.

It would be ideal to have everything under AGPL though.

* Fix view format.

* Add shortcut to execute backups from the "More" menu.

* Avoid duplicated backups.

* Make sure you don't backup inside the filestore folder.

The filestore is saved in the backup, so if you save the backup in the
filestore, you'd end up with a huge backup that includes itself and the
universe may collapse.

* [FIX] This was removing all databases.

* FIX License type

* OCA Transbot updated translations from Transifex

* OCA Transbot updated translations from Transifex

* OCA Transbot updated translations from Transifex

* [FIX] auto_backup: bad reference to field sftp_private_key (OCA#423)

Bump module version to 8.0.1.0.1

* [FIX] auto_backup: Empty dump using sftp backup option (OCA#432)

* [FIX] logger db_backup for pysftp (OCA#419)

* OCA Transbot updated translations from Transifex

* OCA Transbot updated translations from Transifex

* OCA Transbot updated translations from Transifex

* OCA Transbot updated translations from Transifex

* [FIX] remove en.po that was erroneously created by transbot

* [MIG] auto_backup: Migrate to v9
* Add self.ensure_ones
* Add test coverage

* [ADD] auto_backup: Test coverage
* compute_name
* check_folder
* action_sftp_test_connection
* action_backup - sftp
* action_backup_all
* sftp_connection
* filename
lasley added a commit to LasLabs/server-tools that referenced this pull request Nov 24, 2016
* Update english pot file

Added all the new fields and sentences. This will be the template for
translations.

* Dutch translations

Full translation of the module to Dutch

* Chinese translations

Add Chinese translations to the module. Written by talway.

* Changes chinese translation

Changed some translations

* Full German translations

Thanks to Martin Schmid!

* Typo fix

could'nt > couldn't

* Flemish translations

Flemish translations are identical to Dutch.

* Open FTP session on the last moment possible

Used to open  fp = open(file_path,'wb') a few lines before it was needed. This shouldn't be too much of a problem but opening and closing it right after eachother keeps the session open for less time and there are less chances on failure.

* Porting module to OCA 8.0

* [FIX] module

* [FIX] bug logger --> _logger call
[FIX] Flake8
[RM] useless files

* [FIX] Readme.rst

* [FIX] defaults value

* [FIX] rebased commit

* [RM] description index.html

* [RF] porting to new api
[FIX] schedule_backup method
[IMP] IT translation
[IMP] tests

* [FIX] test

* [FIX] flake8

* [IMP] deps in travis.yml
[FIX] flake8

* [FIX] flake8 and pylint

* [FIX] name of file

* [FIX] autoremove method
[FIX] Contributors

* [FIX] mail.tempale seems not work in cron task, replaced  with direct call of mail.mail

* [FIX] Readme

* [FIX] review remarks

* [FIX] handled ssl hosts
[FIX] Flake8

* [FIX] handled ssl hosts
[FIX] Flake8

* [FIX]  fixed, last review remarks

* [FIX] travis lint check

* [FIX] backup only local db , beacause xmlrpc call of dump cause memory leak

* [RM] useless field

* [FIX] check_dd method
[ADD] test case improved

* [auto_backup] Refactor.

- Follow template README.
- Remove HTML README.
- Move models to models folder.
- Model and view file names follow guidelines.
- Unused methods cleanup.
- Remove unneeded `.pot` file.
- Fix permissons.
- Follow PEP8 in names everywhere.
- Set more descriptive field names.
- Disable backups for other databases, for security.
- Remove db name from generated file, for easier cleanup.
- EAFP logic everywhere.
- More descriptive name.
- Data files moved to YAML, with cleaner ir.cron record creation.
- Add permissions for db.backup model.
- Icons.
- Update tests with new format.
- Storage method is a selectable, for easier extensibility.
- Instead of custom mailing, it just has a mail thread where you can subscribe.
- Should fix almost all comments in OCA#203.

* Update english pot file

Added all the new fields and sentences. This will be the template for
translations.

* Dutch translations

Full translation of the module to Dutch

* Chinese translations

Add Chinese translations to the module. Written by talway.

* Changes chinese translation

Changed some translations

* Full German translations

Thanks to Martin Schmid!

* Typo fix

could'nt > couldn't

* Flemish translations

Flemish translations are identical to Dutch.

* Open FTP session on the last moment possible

Used to open  fp = open(file_path,'wb') a few lines before it was needed. This shouldn't be too much of a problem but opening and closing it right after eachother keeps the session open for less time and there are less chances on failure.

* Porting module to OCA 8.0

* [FIX] module

* [FIX] bug logger --> _logger call
[FIX] Flake8
[RM] useless files

* [FIX] Readme.rst

* [FIX] defaults value

* [FIX] rebased commit

* [RM] description index.html

* [RF] porting to new api
[FIX] schedule_backup method
[IMP] IT translation
[IMP] tests

* [FIX] test

* [FIX] flake8

* [IMP] deps in travis.yml
[FIX] flake8

* [FIX] flake8 and pylint

* [FIX] name of file

* [FIX] autoremove method
[FIX] Contributors

* [FIX] mail.tempale seems not work in cron task, replaced  with direct call of mail.mail

* [FIX] Readme

* [FIX] review remarks

* [FIX] handled ssl hosts
[FIX] Flake8

* [FIX] handled ssl hosts
[FIX] Flake8

* [FIX]  fixed, last review remarks

* [FIX] travis lint check

* [FIX] backup only local db , beacause xmlrpc call of dump cause memory leak

* [RM] useless field

* [FIX] check_dd method
[ADD] test case improved

* [auto_backup] Refactor.

- Follow template README.
- Remove HTML README.
- Move models to models folder.
- Model and view file names follow guidelines.
- Unused methods cleanup.
- Remove unneeded `.pot` file.
- Fix permissons.
- Follow PEP8 in names everywhere.
- Set more descriptive field names.
- Disable backups for other databases, for security.
- Remove db name from generated file, for easier cleanup.
- EAFP logic everywhere.
- More descriptive name.
- Data files moved to YAML, with cleaner ir.cron record creation.
- Add permissions for db.backup model.
- Icons.
- Update tests with new format.
- Storage method is a selectable, for easier extensibility.
- Instead of custom mailing, it just has a mail thread where you can subscribe.
- Should fix almost all comments in OCA#203.

* Reduce headers.

This respects the upstream license choice (GPL/AGPL) but reduces
verbosity.

It would be ideal to have everything under AGPL though.

* Fix view format.

* Add shortcut to execute backups from the "More" menu.

* Avoid duplicated backups.

* Make sure you don't backup inside the filestore folder.

The filestore is saved in the backup, so if you save the backup in the
filestore, you'd end up with a huge backup that includes itself and the
universe may collapse.

* [FIX] This was removing all databases.

* FIX License type

* OCA Transbot updated translations from Transifex

* OCA Transbot updated translations from Transifex

* OCA Transbot updated translations from Transifex

* [FIX] auto_backup: bad reference to field sftp_private_key (OCA#423)

Bump module version to 8.0.1.0.1

* [FIX] auto_backup: Empty dump using sftp backup option (OCA#432)

* [FIX] logger db_backup for pysftp (OCA#419)

* OCA Transbot updated translations from Transifex

* OCA Transbot updated translations from Transifex

* OCA Transbot updated translations from Transifex

* OCA Transbot updated translations from Transifex

* [FIX] remove en.po that was erroneously created by transbot

* [MIG] auto_backup: Migrate to v9
* Add self.ensure_ones
* Add test coverage

* [ADD] auto_backup: Test coverage
* compute_name
* check_folder
* action_sftp_test_connection
* action_backup - sftp
* action_backup_all
* sftp_connection
* filename
lasley pushed a commit to LasLabs/server-tools that referenced this pull request Nov 24, 2016
lasley pushed a commit to LasLabs/server-tools that referenced this pull request Nov 24, 2016
lasley pushed a commit to LasLabs/server-tools that referenced this pull request Nov 25, 2016
lasley pushed a commit to LasLabs/server-tools that referenced this pull request Dec 7, 2016
sebalix pushed a commit to osiell/server-tools that referenced this pull request Jan 23, 2017
alan196 pushed a commit to Jarsa-dev/server-tools that referenced this pull request Mar 1, 2018
alan196 pushed a commit to Jarsa-dev/server-tools that referenced this pull request Mar 1, 2018
SiesslPhillip pushed a commit to grueneerde/OCA-server-tools that referenced this pull request Nov 20, 2024
Syncing from upstream OCA/server-tools (8.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants