backup_paradise 1.2.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of backup_paradise might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/README.md +390 -0
- data/backup_paradise.gemspec +50 -0
- data/bin/backup_for_ingrid +10 -0
- data/bin/backup_paradise +7 -0
- data/bin/windows_backup_paradise +9 -0
- data/doc/README.gen +347 -0
- data/doc/TODO.md +130 -0
- data/lib/backup_paradise/actions/README.md +2 -0
- data/lib/backup_paradise/actions/backup.rb +62 -0
- data/lib/backup_paradise/base/base.rb +493 -0
- data/lib/backup_paradise/base/colours.rb +137 -0
- data/lib/backup_paradise/base/namespace.rb +16 -0
- data/lib/backup_paradise/base/tab.rb +47 -0
- data/lib/backup_paradise/colours/colours.rb +88 -0
- data/lib/backup_paradise/constants/constants.rb +162 -0
- data/lib/backup_paradise/gui/glimmer/libui/backup_for_ingrid/backup_for_ingrid.rb +87 -0
- data/lib/backup_paradise/gui/gtk2/OLD_backup.rb +222 -0
- data/lib/backup_paradise/gui/gtk3/simple_backup_widget/create.rb +64 -0
- data/lib/backup_paradise/gui/gtk3/simple_backup_widget/misc.rb +34 -0
- data/lib/backup_paradise/gui/gtk3/simple_backup_widget/simple_backup_widget.rb +167 -0
- data/lib/backup_paradise/gui/libui/backup_for_ingrid/backup_for_ingrid.rb +99 -0
- data/lib/backup_paradise/gui/libui/simple_backup_widget/simple_backup_widget.rb +119 -0
- data/lib/backup_paradise/gui/shared_code/simple_backup_widget/simple_backup_widget_module.rb +595 -0
- data/lib/backup_paradise/gui/tk/backup.rb +108 -0
- data/lib/backup_paradise/images/BACKUP_IMAGE.png +0 -0
- data/lib/backup_paradise/images/right_arrow.png +0 -0
- data/lib/backup_paradise/project/project.rb +40 -0
- data/lib/backup_paradise/requires/require_the_backup_paradise_project.rb +18 -0
- data/lib/backup_paradise/requires/require_yaml.rb +7 -0
- data/lib/backup_paradise/tab/tab.rb +87 -0
- data/lib/backup_paradise/toplevel_methods/cliner.rb +16 -0
- data/lib/backup_paradise/toplevel_methods/config.rb +77 -0
- data/lib/backup_paradise/toplevel_methods/create_and_remove.rb +63 -0
- data/lib/backup_paradise/toplevel_methods/e.rb +16 -0
- data/lib/backup_paradise/toplevel_methods/esystem.rb +19 -0
- data/lib/backup_paradise/toplevel_methods/files_and_directories.rb +181 -0
- data/lib/backup_paradise/toplevel_methods/help.rb +93 -0
- data/lib/backup_paradise/toplevel_methods/misc.rb +153 -0
- data/lib/backup_paradise/toplevel_methods/mountpoint.rb +185 -0
- data/lib/backup_paradise/toplevel_methods/opnn.rb +25 -0
- data/lib/backup_paradise/utility_scripts/backup/backup.rb +1416 -0
- data/lib/backup_paradise/utility_scripts/backup/constants.rb +44 -0
- data/lib/backup_paradise/utility_scripts/backup/initialize.rb +71 -0
- data/lib/backup_paradise/utility_scripts/backup/menu.rb +361 -0
- data/lib/backup_paradise/utility_scripts/backup/run.rb +20 -0
- data/lib/backup_paradise/version/version.rb +19 -0
- data/lib/backup_paradise/windows/README.md +1 -0
- data/lib/backup_paradise/windows/windows.rb +101 -0
- data/lib/backup_paradise/www/backup.cgi +63 -0
- data/lib/backup_paradise/yaml/config.yml +78 -0
- data/lib/backup_paradise.rb +5 -0
- data/test/testing_toplevel_functionality.rb +11 -0
- metadata +198 -0
@@ -0,0 +1,78 @@
|
|
1
|
+
# =========================================================================== #
|
2
|
+
# === config.yml
|
3
|
+
#
|
4
|
+
# This file contains some useful configuration setting for the
|
5
|
+
# backup_paradise gem.
|
6
|
+
# =========================================================================== #
|
7
|
+
# x = YAML.load_file('config.yml')
|
8
|
+
# =========================================================================== #
|
9
|
+
|
10
|
+
# =========================================================================== #
|
11
|
+
# === use_this_program_to_rename_tabs
|
12
|
+
#
|
13
|
+
# Set this to either dcop, mrxvt or false. If false, we won't rename.
|
14
|
+
# =========================================================================== #
|
15
|
+
use_this_program_to_rename_tabs: konsole
|
16
|
+
|
17
|
+
# =========================================================================== #
|
18
|
+
# === show_popup_notification
|
19
|
+
#
|
20
|
+
# On Linux system. If true, we use xmessage command to popup after the
|
21
|
+
# backup-operation has finished.
|
22
|
+
# =========================================================================== #
|
23
|
+
show_popup_notification: false
|
24
|
+
|
25
|
+
# =========================================================================== #
|
26
|
+
# === use_system_cp
|
27
|
+
#
|
28
|
+
# If true, then we will use the system cp rather than FileUtils. On
|
29
|
+
# windows, it may be better to set this to false and use the pure
|
30
|
+
# ruby way to copy files instead.
|
31
|
+
# =========================================================================== #
|
32
|
+
use_system_cp: true
|
33
|
+
|
34
|
+
# =========================================================================== #
|
35
|
+
# === backup_these_directories
|
36
|
+
#
|
37
|
+
# This variable can be used to denote an Array of directories that will
|
38
|
+
# be copied. That way the user can overrule the directories that he or
|
39
|
+
# she wants to backup.
|
40
|
+
#
|
41
|
+
# The sorting here is somewhat important - the backup_paradise gem will
|
42
|
+
# iterate over the Array 1:1, so the entries that come first, will also
|
43
|
+
# be copied first.
|
44
|
+
#
|
45
|
+
# A trailing '/' is not necessary here, but it would not be harmful to
|
46
|
+
# include it either.
|
47
|
+
# =========================================================================== #
|
48
|
+
backup_these_directories:
|
49
|
+
- /home/x/books
|
50
|
+
- /home/x/boot
|
51
|
+
- /home/x/data
|
52
|
+
- /home/x/songs
|
53
|
+
- /home/x/src
|
54
|
+
- /home/x/studium
|
55
|
+
- /home/x/programming
|
56
|
+
# - /home/x/video
|
57
|
+
|
58
|
+
# =========================================================================== #
|
59
|
+
# === local_audio_directory
|
60
|
+
#
|
61
|
+
# If you want to designate another local audio directory then modify the
|
62
|
+
# next value.
|
63
|
+
# =========================================================================== #
|
64
|
+
local_audio_directory: /home/x/songs
|
65
|
+
|
66
|
+
# =========================================================================== #
|
67
|
+
# === Mount paths
|
68
|
+
#
|
69
|
+
# Here you can specify which paths are to be used, for the backup-action.
|
70
|
+
#
|
71
|
+
# For instance, on most Linux systems you may want to use /mnt/usb1/
|
72
|
+
# rather than /Mount/USB1/.
|
73
|
+
# =========================================================================== #
|
74
|
+
usb1: /Mount/USB1/
|
75
|
+
usb2: /Mount/USB2/
|
76
|
+
usb3: /Mount/USB3/
|
77
|
+
usb4: /Mount/USB4/
|
78
|
+
usb5: /Mount/USB5/
|
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
require 'backup_paradise'
|
6
|
+
|
7
|
+
alias e puts
|
8
|
+
|
9
|
+
e 'Next testing whether we can backup the audio directory into the USB1 device.'
|
10
|
+
|
11
|
+
BackupParadise.simple_backup(:audio, :usb1)
|
metadata
ADDED
@@ -0,0 +1,198 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: backup_paradise
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.2.40
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Robert A. Heiler
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-09-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: colours
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: convert_global_env
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: mountpoints
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: opn
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: roebe
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: save_file
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description: |2+
|
98
|
+
|
99
|
+
This project can be used for backup-related tasks, although it is
|
100
|
+
primarily adjusted to my own personal use cases, so it may not
|
101
|
+
be of much use to other ruby users. Still - in the event that someone
|
102
|
+
wants to give it a try or re-use existing ideas for inspiration,
|
103
|
+
feel free to have a look at it.
|
104
|
+
|
105
|
+
For more documentation have a look at the official
|
106
|
+
homepage, at:
|
107
|
+
|
108
|
+
https://www.rubydoc.info/gems/backup_paradise/
|
109
|
+
|
110
|
+
email: shevy@inbox.lt
|
111
|
+
executables:
|
112
|
+
- backup_for_ingrid
|
113
|
+
- backup_paradise
|
114
|
+
- windows_backup_paradise
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- README.md
|
119
|
+
- backup_paradise.gemspec
|
120
|
+
- bin/backup_for_ingrid
|
121
|
+
- bin/backup_paradise
|
122
|
+
- bin/windows_backup_paradise
|
123
|
+
- doc/README.gen
|
124
|
+
- doc/TODO.md
|
125
|
+
- lib/backup_paradise.rb
|
126
|
+
- lib/backup_paradise/actions/README.md
|
127
|
+
- lib/backup_paradise/actions/backup.rb
|
128
|
+
- lib/backup_paradise/base/base.rb
|
129
|
+
- lib/backup_paradise/base/colours.rb
|
130
|
+
- lib/backup_paradise/base/namespace.rb
|
131
|
+
- lib/backup_paradise/base/tab.rb
|
132
|
+
- lib/backup_paradise/colours/colours.rb
|
133
|
+
- lib/backup_paradise/constants/constants.rb
|
134
|
+
- lib/backup_paradise/gui/glimmer/libui/backup_for_ingrid/backup_for_ingrid.rb
|
135
|
+
- lib/backup_paradise/gui/gtk2/OLD_backup.rb
|
136
|
+
- lib/backup_paradise/gui/gtk3/simple_backup_widget/create.rb
|
137
|
+
- lib/backup_paradise/gui/gtk3/simple_backup_widget/misc.rb
|
138
|
+
- lib/backup_paradise/gui/gtk3/simple_backup_widget/simple_backup_widget.rb
|
139
|
+
- lib/backup_paradise/gui/libui/backup_for_ingrid/backup_for_ingrid.rb
|
140
|
+
- lib/backup_paradise/gui/libui/simple_backup_widget/simple_backup_widget.rb
|
141
|
+
- lib/backup_paradise/gui/shared_code/simple_backup_widget/simple_backup_widget_module.rb
|
142
|
+
- lib/backup_paradise/gui/tk/backup.rb
|
143
|
+
- lib/backup_paradise/images/BACKUP_IMAGE.png
|
144
|
+
- lib/backup_paradise/images/right_arrow.png
|
145
|
+
- lib/backup_paradise/project/project.rb
|
146
|
+
- lib/backup_paradise/requires/require_the_backup_paradise_project.rb
|
147
|
+
- lib/backup_paradise/requires/require_yaml.rb
|
148
|
+
- lib/backup_paradise/tab/tab.rb
|
149
|
+
- lib/backup_paradise/toplevel_methods/cliner.rb
|
150
|
+
- lib/backup_paradise/toplevel_methods/config.rb
|
151
|
+
- lib/backup_paradise/toplevel_methods/create_and_remove.rb
|
152
|
+
- lib/backup_paradise/toplevel_methods/e.rb
|
153
|
+
- lib/backup_paradise/toplevel_methods/esystem.rb
|
154
|
+
- lib/backup_paradise/toplevel_methods/files_and_directories.rb
|
155
|
+
- lib/backup_paradise/toplevel_methods/help.rb
|
156
|
+
- lib/backup_paradise/toplevel_methods/misc.rb
|
157
|
+
- lib/backup_paradise/toplevel_methods/mountpoint.rb
|
158
|
+
- lib/backup_paradise/toplevel_methods/opnn.rb
|
159
|
+
- lib/backup_paradise/utility_scripts/backup/backup.rb
|
160
|
+
- lib/backup_paradise/utility_scripts/backup/constants.rb
|
161
|
+
- lib/backup_paradise/utility_scripts/backup/initialize.rb
|
162
|
+
- lib/backup_paradise/utility_scripts/backup/menu.rb
|
163
|
+
- lib/backup_paradise/utility_scripts/backup/run.rb
|
164
|
+
- lib/backup_paradise/version/version.rb
|
165
|
+
- lib/backup_paradise/windows/README.md
|
166
|
+
- lib/backup_paradise/windows/windows.rb
|
167
|
+
- lib/backup_paradise/www/backup.cgi
|
168
|
+
- lib/backup_paradise/yaml/config.yml
|
169
|
+
- test/testing_toplevel_functionality.rb
|
170
|
+
homepage: https://rubygems.org/gems/backup_paradise
|
171
|
+
licenses:
|
172
|
+
- MIT
|
173
|
+
metadata: {}
|
174
|
+
post_install_message:
|
175
|
+
rdoc_options: []
|
176
|
+
require_paths:
|
177
|
+
- lib
|
178
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: 2.5.8
|
183
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 3.3.22
|
188
|
+
requirements: []
|
189
|
+
rubygems_version: 3.3.22
|
190
|
+
signing_key:
|
191
|
+
specification_version: 4
|
192
|
+
summary: 'This project can be used for backup-related tasks, although it is primarily
|
193
|
+
adjusted to my own personal use cases, so it may not be of much use to other ruby
|
194
|
+
users. Still - in the event that someone wants to give it a try or re-use existing
|
195
|
+
ideas for inspiration, feel free to have a look at it. For more documentation have
|
196
|
+
a look at the official homepage, at: https://www.rubydoc.info/gems/backup_paradise/'
|
197
|
+
test_files: []
|
198
|
+
...
|