Skip to content

Commit

Permalink
Added copyright+license notice
Browse files Browse the repository at this point in the history
  • Loading branch information
per2jensen committed Feb 27, 2024
1 parent ccbb461 commit de8c62f
Show file tree
Hide file tree
Showing 10 changed files with 163 additions and 7 deletions.
16 changes: 16 additions & 0 deletions bin/cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#! /bin/bash
#
# Copyright (C) 2024 Per Jensen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.


# This script deletes the following
# - DIFF archives + par2 files older than DIFF_AGE
# - INC archives + par2 files older than INC_AGE
Expand Down
21 changes: 19 additions & 2 deletions bin/dar-backup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
#! /bin/bash
#
# Copyright (C) 2024 Per Jensen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# Run script as a non-root user if sshfs mounts are used
#
# Will do full backups if called as "dar-backup.sh"
Expand Down Expand Up @@ -74,9 +90,10 @@ while [ -n "$1" ]; do
;;
--version|-v)
echo "$SCRIPTNAME $VERSION"
echo "Licensed under GNU GENERAL PUBLIC LICENSE v3, see \"LICENSE\" file for details"
echo "Licensed under GNU GENERAL PUBLIC LICENSE v3, see the supplied file \"LICENSE\" for details."
echo "THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW, see section 15 and section 16 in the \"LICENSE\" file"
APPLICABLE LAW, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
echo "See section 15 and section 16 in the supplied \"LICENSE\" file."
exit
;;
*)
Expand Down
18 changes: 16 additions & 2 deletions bin/dar-util.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
#! /bin/bash


#
# Copyright (C) 2024 Per Jensen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# mount a server dir using sshfs, as sshfs is a FUSE solution, root or
# programs running in the root context cannot access the server
#
Expand Down
17 changes: 16 additions & 1 deletion bin/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
#! /bin/bash

#
# Copyright (C) 2024 Per Jensen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# set correct dir paths in config files
# make the backup executable
# create the softlink for the "diff" version
Expand Down
16 changes: 16 additions & 0 deletions bin/ls-archives.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
#! /bin/bash
#
# Copyright (C) 2024 Per Jensen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

SCRIPTPATH=$(realpath "$0")
SCRIPTDIRPATH=$(dirname "$SCRIPTPATH")
Expand Down
16 changes: 16 additions & 0 deletions bin/manager.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#! /bin/bash
#
# Copyright (C) 2024 Per Jensen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
#
# This script creates/maintains the dar catalogs from existing dar archives for backup definitions.
#

Expand Down
17 changes: 16 additions & 1 deletion bin/par2.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
#! /bin/bash

#
# Copyright (C) 2024 Per Jensen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# Generate par2 repair files of .dar files
#
#
Expand Down
17 changes: 16 additions & 1 deletion bin/send-msg.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
#! /bin/bash

#
# Copyright (C) 2024 Per Jensen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# $1: the msg to send to Discord


Expand Down
16 changes: 16 additions & 0 deletions bin/show-DIFF.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
#! /bin/bash
#
# Copyright (C) 2024 Per Jensen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# print DIFF archives including number of slices and the slice size

export DATE=`date -I`
Expand Down
16 changes: 16 additions & 0 deletions bin/show-FULL.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
#! /bin/bash
#
# Copyright (C) 2024 Per Jensen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# print FULL archives including number of slices and the slice size

export DATE=`date -I`
Expand Down

0 comments on commit de8c62f

Please sign in to comment.