当前位置:网站首页>Copy large files with crontab
Copy large files with crontab
2022-08-10 05:48:00 【development old man】
Scenario
Some large files will fail to be transferred due to the long time when using the scp command in SHELL to transfer the client computer that opens the SHELL window.night time), delete the timing plan in the crontab after the copy is completed;
Format of crontab:
- Points (0-59)
- hours (0-23)
- Date (1-31)
- Month (1-12)
- Day of the week (0-6, 0 is Sunday)
- Specific commands
crontab query command:
crontab -lcrontab editing command:
crontab -e1 19 1 8 1 /usr/bin/scp /data/file1.tar.gz [email protected]_server_ip:/home/data-bak/1 20 1 8 1 /usr/bin/scp /data/file2.tar.gz [email protected]_server_ip:/home/data-bak/ Set password-free login
You also need to configure password-free login to automatically execute the copy command
Run on the server where crontab is set up:
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
ssh-copy-id [email protected]_server_ip
边栏推荐
- impdp import data
- 用Pytorch从0到1实现逻辑回归
- 利用PyQt5制作YOLOv5的GUI界面
- pytorch框架学习(6)训练一个简单的自己的CNN (三)细节篇
- PCL,VS配置过程中出现:用 _sopen_s 代替 _open, 或用_CRT_SECURE_NO_WARNNINGS错误
- pytorch框架学习(5)torchvision模块&训练一个简单的自己的CNN (二)
- pytorch框架学习(2)使用GPU训练
- 【写下自用】每次都忘记如何train?记录如何训练自己的yolov5
- Four characteristics of ACID
- el-cascader级联选择器的子菜单双击两次才显示被选中的内容
猜你喜欢

链读|最新最全的数字藏品发售日历-08.02

Reflection 【Notes】

transaction, storage engine

【写下自用】每次都忘记如何train?记录如何训练自己的yolov5

PCL点云滤波

Chain Reading Recommendation: From Tiles to Generative NFTs

The complex "metaverse" will be interpreted for you, and the Link Reading APP will be launched soon!

Operation table Function usage

ORACLE system table space SYSTEM is full and cannot expand table space problem solving process

文章复现:超分辨率网络-VDSR
随机推荐
文章复现:SRCNN
Analysis of the investment value of domestic digital collections
利用 crontab 拷贝大文件
链读推荐:从瓷砖到生成式 NFT
R绘制图像,图像特征提取
事务、存储引擎
IO stream【】【】【】
pygame学习计划(1)
OSPF实验
IO流【】【】【】
定时器(setInterval)的开启与关闭
kaggle小白必看:小白常见的2个错误解决方案
cesium rotate image
【写下自用】每次都忘记如何train?记录如何训练自己的yolov5
Knowledge Distillation Thesis Learning
Ten years of sharpening a sword!The digital collection market software, Link Reading APP is officially open for internal testing!
毫米波雷达数据集Scorp使用
【el和template区别】
ORACLE system table space SYSTEM is full and cannot expand table space problem solving process
知识蒸馏论文学习