initial commit
This commit is contained in:
36
app/Console/Documentation/ArchiveDelete.txt
Normal file
36
app/Console/Documentation/ArchiveDelete.txt
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Command:
|
||||
* php app\Console\cake.php Backup initiateRemoveArchive <months> <limit>
|
||||
*
|
||||
* Description:
|
||||
=======================================================
|
||||
1. Get the data to the "expenses" table in the archive database.
|
||||
2. Removed from respective tables in archive tables
|
||||
Steps
|
||||
======
|
||||
1. Go to Project Folder
|
||||
2. Run the command like
|
||||
In Widows:
|
||||
C:\xampp_php7\htdocs\expensecount> C:\xampp_php7\php\php.exe app\Console\cake.php Backup initiateRemoveArchive 50 100
|
||||
(project dir)> "PHP executable" "Entry Point CakePHP shells" "Shell Class" "Function" "Months" "Rows"
|
||||
( it means
|
||||
1. 50 month before data from current month
|
||||
2. 100 record at a time
|
||||
)
|
||||
*===========================================================
|
||||
*
|
||||
* Parameters:
|
||||
* <months> Number of months before the current date. Records older than
|
||||
* this period will be permanently removed.
|
||||
* <limit> Maximum number of records to remove in a single execution.
|
||||
*
|
||||
* Example:
|
||||
* php app\Console\cake.php Backup initiateRemoveArchive 10 100
|
||||
*
|
||||
* This command deletes up to 100 archived records that are older than
|
||||
* 10 months from the current date.
|
||||
*
|
||||
* Usage Notes:
|
||||
* - Intended to be run via cron or manually as part of archive maintenance.
|
||||
|
||||
*/
|
||||
Reference in New Issue
Block a user