„install.sh“ ändern
This commit is contained in:
		@@ -13,9 +13,7 @@ echo "# Enter the directory where the zipped files will be stored (e.g., /path/t
 | 
				
			|||||||
echo "Enter the directory where the zipped files will be stored (e.g., /path/to/archive)"
 | 
					echo "Enter the directory where the zipped files will be stored (e.g., /path/to/archive)"
 | 
				
			||||||
read archive
 | 
					read archive
 | 
				
			||||||
echo "ARCHIVE_DIR='"$archive"'" >> zip_folder_daily.sh
 | 
					echo "ARCHIVE_DIR='"$archive"'" >> zip_folder_daily.sh
 | 
				
			||||||
echo "DATE=$(date +%Y-%m-%d)" >> zip_folder_daily.sh
 | 
					curl https://git.moelle.space/hxcde/folderarchive/raw/branch/main/append >> zip_folder_daily.sh
 | 
				
			||||||
echo "zip -r "${ARCHIVE_DIR}/folder_${DATE}.zip" "${SOURCE_DIR}"" >> zip_folder_daily.sh
 | 
					 | 
				
			||||||
echo "find "${ARCHIVE_DIR}" -name "folder_*.zip" -mtime +13 -exec rm {} \;" >> zip_folder_daily.sh
 | 
					 | 
				
			||||||
sh /opt/zip_folder_daily.sh
 | 
					sh /opt/zip_folder_daily.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
crontab -l > mycron
 | 
					crontab -l > mycron
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user