DOCUMENTATION
SYNOPSIS
PROGRAM NAME: BakupProject
AUTHOR: Juan Lorenzo
CHANGES and their DATES
DATE: July 2024
Version 1.0
DESCRIPTION
Backup (tar -czvf) a Project plus
its Project.config file
USE
perl BackupProject.pl
Steps
1. Read the BackupProject.config file in the user's Project directory. This Project directory does not have to be the same one that is being tarred
2. Read configuration file to determine the directory that is being tarred
3. Confirm that the directory is a project. Otherwise output a warning.
4. tar -czvf
5. Message that process is complete
NOTES
We are using Moose.
Moose already declares that you need debuggers turned on
so you don't need a line like the following:
use warnings;
Instantiate classes:
Create a new versions of the packages
Internal definitions
Get configuration information
Assume Project is at least soft-linked from the home dirctory
Verify project is a true SUG project
collect project names compare backup project against project names
check to see that the project directory
that is to be backed up exists.
check to see that the project directory contains Project.config
If Project.config exists then
copy this file with the Project during the backup
Tarring a project
remove the local path